summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-04-30 22:21:45 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2020-04-30 22:21:46 -0700
commit96837dc9e039d6f8be667f0662f36635df71cbbe (patch)
tree75956e5b671777ebc2f8087e7b2ac86be6b2a96a
parente8a78d7df899291aa025e41207436a450235a4d7 (diff)
Switch test_unload_units_and_compaction on mswin
because we support JIT compaction on it
-rw-r--r--test/ruby/test_jit.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 1d0c86d7d7..d4e3ccba3f 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -701,13 +701,17 @@ class TestJIT < Test::Unit::TestCase
10.times do |i|
assert_match(/\A#{JIT_SUCCESS_PREFIX}: mjit#{i}@\(eval\):/, errs[i], debug_info)
end
- assert_equal("Too many JIT code, but skipped unloading units for JIT compaction\n", errs[10], debug_info)
- assert_equal("No units can be unloaded -- incremented max-cache-size to 11 for --jit-wait\n", errs[11], debug_info)
- assert_match(/\A#{JIT_SUCCESS_PREFIX}: mjit10@\(eval\):/, errs[12], debug_info)
# On --jit-wait, when the number of JIT-ed code reaches --jit-max-cache,
# it should trigger compaction.
- unless RUBY_PLATFORM.match?(/mswin|mingw/) # compaction is not supported on Windows yet
+ if RUBY_PLATFORM.match?(/mswin|mingw/) # compaction is not supported on Windows yet
+ assert_equal("Too many JIT code -- 1 units unloaded\n", errs[10], debug_info)
+ assert_match(/\A#{JIT_SUCCESS_PREFIX}: mjit10@\(eval\):/, errs[11], debug_info)
+ else
+ assert_equal("Too many JIT code, but skipped unloading units for JIT compaction\n", errs[10], debug_info)
+ assert_equal("No units can be unloaded -- incremented max-cache-size to 11 for --jit-wait\n", errs[11], debug_info)
+ assert_match(/\A#{JIT_SUCCESS_PREFIX}: mjit10@\(eval\):/, errs[12], debug_info)
+
assert_equal(3, compactions.size, debug_info)
end