From 9ee210fd3fe9eaa36962ba20ee4fa5d47c295ee2 Mon Sep 17 00:00:00 2001 From: Chris Seaton Date: Tue, 30 Aug 2022 12:45:31 +0000 Subject: [PATCH] Workaround for https://github.com/mmtk/mmtk-core/issues/654 --- bootstraptest/runner.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 794757a8b1ed58..5a6b7912a049ca 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -469,7 +469,10 @@ def get_result_string(opt = '', **argh) kw = self.err ? {err: self.err} : {} out = IO.popen("#{BT.ruby} -W0 #{opt} #{filename}", **kw) pid = out.pid - out.read.tap{ Process.waitpid(pid); out.close } + result = out.read.tap{ Process.waitpid(pid); out.close } + # https://github.com/mmtk/mmtk-core/issues/654 + result.gsub! /Warning: User attempted a collection request, but it is not supported in NoGC. The request is ignored.\n/, '' + result ensure raise Interrupt if $? and $?.signaled? && $?.termsig == Signal.list["INT"]