diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-07-09 13:01:44 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-07-09 13:01:44 +0900 |
commit | 690b56440beaa32873a8311451033bb4bd34e94c (patch) | |
tree | 9b607e87c325231e3eb28a7e4e7c7deddbd01b42 /bootstraptest/test_io.rb | |
parent | e500222de1a8d5e7a844209a7e912b03db8cdf76 (diff) |
Use `File.write` instead of `Kernel#open`
Diffstat (limited to 'bootstraptest/test_io.rb')
-rw-r--r-- | bootstraptest/test_io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb index 666e5a011b..4e5d6d59c9 100644 --- a/bootstraptest/test_io.rb +++ b/bootstraptest/test_io.rb @@ -91,7 +91,7 @@ assert_normal_exit %q{ at_exit { p :foo } megacontent = "abc" * 12345678 - #File.open("megasrc", "w") {|f| f << megacontent } + #File.write("megasrc", megacontent) t0 = Thread.main Thread.new { sleep 0.001 until t0.stop?; Process.kill(:INT, $$) } |