| 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..4c83612f8e9a90b3d250d4ae186048485e11be1b 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;
|
| 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");
|
| }
|
|
|