ruby-changes:59860
From: Koichi <ko1@a...>
Date: Wed, 29 Jan 2020 01:01:12 +0900 (JST)
Subject: [ruby-changes:59860] 0cfba9cdd9 (master): Revert "remove debug code."
https://git.ruby-lang.org/ruby.git/commit/?id=0cfba9cdd9 From 0cfba9cdd9c18b0245b088ed5b460f0d6f90d586 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Wed, 29 Jan 2020 00:55:11 +0900 Subject: Revert "remove debug code." This reverts commit 65768c80beb64a14c3e918f8ed5e41e9349025d0. diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index 218bed7..0808c1e 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -2,6 +2,9 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rand.rb#L2 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{ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/