aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-01-29 00:55:11 +0900
committerKoichi Sasada <ko1@atdot.net>2020-01-29 00:55:11 +0900
commit0cfba9cdd9c18b0245b088ed5b460f0d6f90d586 (patch)
tree35a4cea8f00f1e1237eefa84d225184d2d6f294a
parente7571f163b791d8ca5df389ba97e7d4acadbf480 (diff)
downloadruby-0cfba9cdd9c18b0245b088ed5b460f0d6f90d586.tar.gz
Revert "remove debug code."
This reverts commit 65768c80beb64a14c3e918f8ed5e41e9349025d0.
-rw-r--r--test/ruby/test_rand.rb3
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{