From 6147e2807ddd024c097b556331ca160ebb72cc70 Mon Sep 17 00:00:00 2001 From: Chris Seaton Date: Wed, 3 Aug 2022 22:51:21 +0000 Subject: [PATCH 1/2] Update btest predicate --- bootstraptest/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index d7289f5a95b14f..688d7c8369fdd6 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -721,7 +721,7 @@ def check_coredump end def mmtk? - `#{BT.ruby} -e 'p defined?(GC::MMTk)'`.strip == '"constant"' + `#{BT.ruby} -e 'puts (defined?(GC::MMTk.enabled?) && GC::MMTk.enabled?) || false'`.strip == 'true' end exit main From 97c8dc8835a5fb2b22de85567497b942da54e53c Mon Sep 17 00:00:00 2001 From: Chris Seaton Date: Thu, 4 Aug 2022 12:06:58 +0100 Subject: [PATCH 2/2] print rather than puts and strip --- bootstraptest/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 688d7c8369fdd6..794757a8b1ed58 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -721,7 +721,7 @@ def check_coredump end def mmtk? - `#{BT.ruby} -e 'puts (defined?(GC::MMTk.enabled?) && GC::MMTk.enabled?) || false'`.strip == 'true' + `#{BT.ruby} -e 'print (defined?(GC::MMTk.enabled?) && GC::MMTk.enabled?) || false'` == 'true' end exit main