From c093fd86d28318f2fb3541d339cf6d3aae1da7e2 Mon Sep 17 00:00:00 2001 From: Matt Valentine-House Date: Thu, 13 Jun 2024 20:28:19 +0100 Subject: 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 --- bootstraptest/test_yjit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} }") -- cgit v1.2.3