diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-01-29 00:55:11 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-01-29 00:55:11 +0900 |
commit | 0cfba9cdd9c18b0245b088ed5b460f0d6f90d586 (patch) | |
tree | 35a4cea8f00f1e1237eefa84d225184d2d6f294a /test/ruby/test_rand.rb | |
parent | e7571f163b791d8ca5df389ba97e7d4acadbf480 (diff) |
Revert "remove debug code."
This reverts commit 65768c80beb64a14c3e918f8ed5e41e9349025d0.
Diffstat (limited to 'test/ruby/test_rand.rb')
-rw-r--r-- | test/ruby/test_rand.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index 218bed7607..0808c1ef2a 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -2,6 +2,9 @@ require 'test/unit' class TestRand < Test::Unit::TestCase + def teardown + raise if srand == 0 + end def assert_random_int(ws, m, init = 0) # call srand in another process assert_separately [], %Q{ |