| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index b5bbabed5e77544ee4122fda83e2387fa97883dd..1efadfeb4aa1692383a6ccf51143c10b0e3fccf4 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -14560,7 +14560,7 @@ void SetFunctionEntryHookTest::RunTest() {
|
| RunLoopInNewEnv(isolate);
|
|
|
| // Check the expected invocation counts.
|
| - if (!i::FLAG_ignition && !i::FLAG_turbo) {
|
| + if (i::FLAG_always_opt || (!i::FLAG_ignition && !i::FLAG_turbo)) {
|
| CHECK_EQ(2, CountInvocations(NULL, "bar"));
|
| CHECK_EQ(200, CountInvocations("bar", "foo"));
|
| CHECK_EQ(200, CountInvocations(NULL, "foo"));
|
|
|