Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 78ecc36d6ad6eec74e4e0da1dbbcd0821388aa14..1da3cd53f50ca86ab27cbc4eac8a18f9875205ba 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -14182,6 +14182,7 @@ static void event_handler(const v8::JitCodeEvent* event) { |
UNINITIALIZED_TEST(SetJitCodeEventHandler) { |
i::FLAG_stress_compaction = true; |
i::FLAG_incremental_marking = false; |
+ if (i::FLAG_never_compact) return; |
const char* script = |
"function bar() {" |
" var sum = 0;" |