Skip to content

Commit bc47ca5

Browse files
committed
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
1 parent 4fee101 commit bc47ca5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/ruby/test_literal.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,10 @@ def test_float
640640
end
641641
begin
642642
r2 = eval(s)
643+
rescue ArgumentError
644+
# Debug log for a random failure: ArgumentError: SyntaxError#path changed
645+
$stderr.puts "TestRubyLiteral#test_float failed: %p" % s
646+
raise
643647
rescue SyntaxError => e
644648
r2 = :err
645649
rescue NameError

0 commit comments

Comments
 (0)