From bc47ca5546a1287fbb052329075293c200d830b0 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Mon, 27 May 2024 18:16:28 +0900 Subject: Add a debug print for a random failure ``` 1) Error: TestRubyLiteral#test_float: ArgumentError: SyntaxError#path changed: "(eval at /home/chkbuild/chkbuild/tmp/build/20240527T050036Z/ruby/test/ruby/test_literal.rb:642)"->"(eval at /home/chkbuild/chkbuild/tmp/build/20240527T050036Z/ruby/test/ruby/test_literal.rb:642)" ``` https://rubyci.s3.amazonaws.com/s390x/ruby-master/log/20240527T050036Z.fail.html.gz --- test/ruby/test_literal.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb index b0fd4680b3..8732d8f0d0 100644 --- a/test/ruby/test_literal.rb +++ b/test/ruby/test_literal.rb @@ -640,6 +640,10 @@ class TestRubyLiteral < Test::Unit::TestCase end begin r2 = eval(s) + rescue ArgumentError + # Debug log for a random failure: ArgumentError: SyntaxError#path changed + $stderr.puts "TestRubyLiteral#test_float failed: %p" % s + raise rescue SyntaxError => e r2 = :err rescue NameError -- cgit v1.2.3