diff options
Diffstat (limited to 'spec/ruby/core/file')
-rw-r--r-- | spec/ruby/core/file/fixtures/file_types.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/file/fixtures/file_types.rb b/spec/ruby/core/file/fixtures/file_types.rb index 36a5ff1a95..397cac9b6b 100644 --- a/spec/ruby/core/file/fixtures/file_types.rb +++ b/spec/ruby/core/file/fixtures/file_types.rb @@ -8,7 +8,7 @@ module FileSpecs platform_is_not :windows do @block = `find /dev /devices -type b 2> /dev/null`.split("\n").first - @char = `find /dev /devices -type c 2> /dev/null`.split("\n").last + @char = `{ tty || find /dev /devices -type c; } 2> /dev/null`.split("\n").last %w[/dev /usr/bin /usr/local/bin].each do |dir| links = `find #{dir} -type l 2> /dev/null`.split("\n") |