summaryrefslogtreecommitdiff
path: root/bootstraptest/test_io.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-07-09 13:01:44 +0900
committerNobuyoshi Nakada <[email protected]>2024-07-09 13:01:44 +0900
commit690b56440beaa32873a8311451033bb4bd34e94c (patch)
tree9b607e87c325231e3eb28a7e4e7c7deddbd01b42 /bootstraptest/test_io.rb
parente500222de1a8d5e7a844209a7e912b03db8cdf76 (diff)
Use `File.write` instead of `Kernel#open`
Diffstat (limited to 'bootstraptest/test_io.rb')
-rw-r--r--bootstraptest/test_io.rb2
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, $$) }