From 0cfba9cdd9c18b0245b088ed5b460f0d6f90d586 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Wed, 29 Jan 2020 00:55:11 +0900 Subject: [PATCH] Revert "remove debug code." This reverts commit 65768c80beb64a14c3e918f8ed5e41e9349025d0. --- test/ruby/test_rand.rb | 3 +++ 1 file changed, 3 insertions(+) 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{