Index: test/cctest/test-profile-generator.cc |
diff --git a/test/cctest/test-profile-generator.cc b/test/cctest/test-profile-generator.cc |
index a048ca72cb41fb0ab026a3a19627ef82294c4493..48633f5da1eb07a13f58d5540a8d20eeeeb0e97f 100644 |
--- a/test/cctest/test-profile-generator.cc |
+++ b/test/cctest/test-profile-generator.cc |
@@ -672,10 +672,13 @@ TEST(LineNumber) { |
profiler->processor()->StopSynchronously(); |
+ bool is_lazy = i::FLAG_lazy && !(i::FLAG_ignition && i::FLAG_ignition_eager); |
CHECK_EQ(1, GetFunctionLineNumber(&env, "foo_at_the_first_line")); |
- CHECK_EQ(0, GetFunctionLineNumber(&env, "lazy_func_at_forth_line")); |
+ CHECK_EQ(is_lazy ? 0 : 4, |
+ GetFunctionLineNumber(&env, "lazy_func_at_forth_line")); |
CHECK_EQ(2, GetFunctionLineNumber(&env, "bar_at_the_second_line")); |
- CHECK_EQ(0, GetFunctionLineNumber(&env, "lazy_func_at_6th_line")); |
+ CHECK_EQ(is_lazy ? 0 : 6, |
+ GetFunctionLineNumber(&env, "lazy_func_at_6th_line")); |
profiler->StopProfiling("LineNumber"); |
} |