1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/pkgs/development/compilers/mruby/0001-Disables-IO-isatty-test-for-sandboxed-builds.patch
2018-08-10 19:07:20 -04:00

37 lines
910 B
Diff

From f3db284516105fd30b5513a5528104574a7b8545 Mon Sep 17 00:00:00 2001
From: Samuel Dionne-Riel <samuel@dionne-riel.com>
Date: Thu, 9 Aug 2018 19:07:45 -0400
Subject: [PATCH] Disables `IO#isatty` test for sandboxed builds.
---
mrbgems/mruby-io/test/io.rb | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/mrbgems/mruby-io/test/io.rb b/mrbgems/mruby-io/test/io.rb
index e06b1499..e8a54736 100644
--- a/mrbgems/mruby-io/test/io.rb
+++ b/mrbgems/mruby-io/test/io.rb
@@ -342,19 +342,6 @@ assert('IO#_read_buf') do
io.closed?
end
-assert('IO#isatty') do
- skip "isatty is not supported on this platform" if MRubyIOTestUtil.win?
- f1 = File.open("/dev/tty")
- f2 = File.open($mrbtest_io_rfname)
-
- assert_true f1.isatty
- assert_false f2.isatty
-
- f1.close
- f2.close
- true
-end
-
assert('IO#pos=, IO#seek') do
fd = IO.sysopen $mrbtest_io_rfname
io = IO.new fd
--
2.16.4