From 0f8b29689fd1ac6a83c3f0304f3a65f7489005a8 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 13 Oct 2023 23:33:06 +0900 Subject: [PATCH] use clear filename for btest `make btest` (bootstraptest/) makes tempfile and run the file. This patch introduces two changes: * use fullpath to make easy to find the file (with `ps`) * `__` to `_L_N` (`_123_456` is not easy to find which is line number). --- bootstraptest/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index c8ba8244076986..aa6b24a2ba1489 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -549,7 +549,7 @@ def get_result_string(opt = '', **argh) end def make_srcfile(frozen_string_literal: nil) - filename = "bootstraptest.#{self.path}_#{self.lineno}_#{self.id}.rb" + filename = File.join(Dir.pwd, "btest.#{self.path}_L#{self.lineno}_N#{self.id}.rb") File.open(filename, 'w') {|f| f.puts "#frozen_string_literal:true" if frozen_string_literal f.puts "GC.stress = true" if $stress