diff options
| author | Matt Valentine-House <matt@eightbitraptor.com> | 2024-06-13 20:28:19 +0100 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2024-06-13 18:58:49 -0400 |
| commit | c093fd86d28318f2fb3541d339cf6d3aae1da7e2 (patch) | |
| tree | f707b355f9b40fbb89a1f80a29117b65d03c26b5 | |
| parent | b988ae3a06506a4361ab5cbd51da5992268fb713 (diff) | |
Don't return inside assert_equal
The implementation of assert_equal inside bootstraptest/runner.rb wraps
a print around all the test code specified in the string, making returns
useless.
This change fixes this test for platforms that don't implement
GC.compact
Co-Authored-By: Peter Zhu <peter@peterzhu.ca>
| -rw-r--r-- | bootstraptest/test_yjit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 4c219e3bcc..9f35269fc5 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -157,7 +157,7 @@ assert_equal '0', "0.abs(&nil)" # regression test for invokeblock iseq guard assert_equal 'ok', %q{ - return :ok unless defined?(GC.compact) + skip :ok unless defined?(GC.compact) def foo = yield 10.times do |i| ret = eval("foo { #{i} }") |
