path: root/test/coverage/test_coverage.rb
diff options
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-08 06:42:05 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-08 06:42:05 +0000
commitf21d6210eb3c24366136766c2557cf57fed81792 (patch)
tree707b0583115f28d5bc468b550dca788173c74946 /test/coverage/test_coverage.rb
parent8de705ee56841d83d977713a05a65f83e3f9f6e4 (diff)
* test/coverage/test_coverage.rb (TestCoverage#test_big_code): use `1'
instead of `p' to get rid of a side effect. Kernel#p without any argument seems to do nothing, but flushes stdout. and, if stdout is redirected to file, fsync() will be called on Windows. so, when running test-all on Windows with redirection, such as CI environment, this test took a lot of time. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/coverage/test_coverage.rb')
1 files changed, 1 insertions, 1 deletions
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb
index 4d785c3..d9770c0 100644
--- a/test/coverage/test_coverage.rb
+++ b/test/coverage/test_coverage.rb
@@ -47,7 +47,7 @@ class TestCoverage < Test::Unit::TestCase
Dir.mktmpdir {|tmp|
Dir.chdir(tmp) {"test.rb", "w") do |f|
- f.puts "p\n" * 10000
+ f.puts "1\n" * 10000
f.puts "def ignore(x); end"
f.puts "ignore([1"
f.puts "])"