diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-01-24 22:04:05 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-01-24 22:04:05 +0900 |
| commit | 0e93f1ff1263f9d0cabe3f8083ca7adad9b9e556 (patch) | |
| tree | bb996d7b21252fbc7fb3b586d3e1fcf8974ff1d4 /mrbgems/mruby-io/test | |
| parent | dfb56074d6d0908c76bf618d526990497ca0271e (diff) | |
| parent | dc9c40f72d5df55dff7c2ebb5b92b9489ad10ecd (diff) | |
| download | mruby-0e93f1ff1263f9d0cabe3f8083ca7adad9b9e556.tar.gz mruby-0e93f1ff1263f9d0cabe3f8083ca7adad9b9e556.zip | |
Merge pull request #3921 from ksss/cloexec
Should be true for close_on_exec flag
Diffstat (limited to 'mrbgems/mruby-io/test')
| -rw-r--r-- | mrbgems/mruby-io/test/io.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/test/io.rb b/mrbgems/mruby-io/test/io.rb index 96c3495d0..e06b14996 100644 --- a/mrbgems/mruby-io/test/io.rb +++ b/mrbgems/mruby-io/test/io.rb @@ -216,6 +216,10 @@ assert('IO#dup for readable') do dup = io.dup assert_true io != dup assert_true io.fileno != dup.fileno + begin + assert_true dup.close_on_exec? + rescue NotImplementedError + end assert_equal 'm', dup.sysread(1) assert_equal 'r', io.sysread(1) assert_equal 'u', dup.sysread(1) |
