diff options
author | Yusuke Endoh <[email protected]> | 2024-05-27 18:16:28 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2024-05-27 18:16:28 +0900 |
commit | bc47ca5546a1287fbb052329075293c200d830b0 (patch) | |
tree | f094f95a3fbb8148d2424937e8fab4d1ec098292 | |
parent | 4fee1019f607cdbfd6c55fc5ca587de04cb3cb65 (diff) |
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
-rw-r--r-- | test/ruby/test_literal.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |