We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--zjit-stats=<path>
1 parent 3a4d534 commit f6ef4efCopy full SHA for f6ef4ef
test/ruby/test_zjit.rb
@@ -49,6 +49,19 @@ def test = 42
49
assert_success(out, err, status)
50
refute_includes(err, stats_header)
51
assert_equal("true\n", out)
52
+
53
+ # With --zjit-stats=<path>, stats should be printed to the path
54
+ Tempfile.create("zjit-stats-") {|tmp|
55
+ stats_file = tmp.path
56
+ tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...")
57
+ tmp.close
58
59
+ out, err, status = eval_with_jit(script, stats: stats_file)
60
+ assert_success(out, err, status)
61
+ refute_includes(err, stats_header)
62
+ assert_equal("true\n", out)
63
+ assert_equal stats_header, File.open(stats_file) {|f| f.gets(chomp: true)}, "should be overwritten"
64
+ }
65
end
66
67
def test_enable_through_env
0 commit comments