Skip to content

Commit de7fb26

Browse files
authored
Workaround for mmtk/mmtk-core#654 (#22)
1 parent 1def0d8 commit de7fb26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bootstraptest/runner.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,10 @@ def get_result_string(opt = '', **argh)
469469
kw = self.err ? {err: self.err} : {}
470470
out = IO.popen("#{BT.ruby} -W0 #{opt} #{filename}", **kw)
471471
pid = out.pid
472-
out.read.tap{ Process.waitpid(pid); out.close }
472+
result = out.read.tap{ Process.waitpid(pid); out.close }
473+
# https://github.com/mmtk/mmtk-core/issues/654
474+
result.gsub! /Warning: User attempted a collection request, but it is not supported in NoGC. The request is ignored.\n/, ''
475+
result
473476
ensure
474477
raise Interrupt if $? and $?.signaled? && $?.termsig == Signal.list["INT"]
475478

0 commit comments

Comments
 (0)