Skip to content

Commit

Permalink
Add a debug print for a random failure
Browse files Browse the repository at this point in the history
```
  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
  • Loading branch information
mame committed May 27, 2024
1 parent 4fee101 commit bc47ca5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/ruby/test_literal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,10 @@ def test_float
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
Expand Down

0 comments on commit bc47ca5

Please sign in to comment.