Skip to content

Commit

Permalink
Fix tests according to the update in stack tracing
Browse files Browse the repository at this point in the history
Signed-off-by: HyukWoo Park <[email protected]>
  • Loading branch information
clover2123 committed Oct 17, 2023
1 parent bf9d492 commit 24b81c6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/cctest/testapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2673,7 +2673,7 @@ DebuggerOperationsRef::ResumeBreakpointOperation DebuggerTest::stopAtBreakpoint(
EXPECT_EQ(stackTrace[1].weakCodeRef, codeRefs[0]);
EXPECT_EQ(stackTrace[1].line, 8);
EXPECT_EQ(stackTrace[1].column, 1);
EXPECT_EQ(stackTrace[1].depth, 2);
EXPECT_EQ(stackTrace[1].depth, 1);

return DebuggerOperationsRef::Continue;
}
Expand Down
6 changes: 6 additions & 0 deletions tools/debugger/tests/do_break_async.expected
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,23 @@ Breakpoint 3 at tools/debugger/tests/do_break_async.js:22 (in f() at line:20, co
(escargot-debugger) c
Stopped at breakpoint:1 tools/debugger/tests/do_break_async.js:40 (in j() at line:38, col:1)
(escargot-debugger) bt
tools/debugger/tests/do_break_async.js:40:5 [depth:0] (in j)
tools/debugger/tests/do_break_async.js:43:1
(escargot-debugger) c
Stopped at breakpoint:2 tools/debugger/tests/do_break_async.js:31 (in h() at line:29, col:1)
(escargot-debugger) bt
tools/debugger/tests/do_break_async.js:31:5 [depth:0] (in h)
tools/debugger/tests/do_break_async.js:35:5 (in i)
tools/debugger/tests/do_break_async.js:40:5 (in j)
tools/debugger/tests/do_break_async.js:43:1
(escargot-debugger) c
Stopped at breakpoint:3 tools/debugger/tests/do_break_async.js:22 (in f() at line:20, col:1)
(escargot-debugger) bt
tools/debugger/tests/do_break_async.js:22:5 [depth:0] (in f)
tools/debugger/tests/do_break_async.js:26:5 (in g)
tools/debugger/tests/do_break_async.js:31:5 (in h)
tools/debugger/tests/do_break_async.js:35:5 (in i)
tools/debugger/tests/do_break_async.js:40:5 (in j)
tools/debugger/tests/do_break_async.js:43:1
(escargot-debugger) c
Connection closed.
3 changes: 3 additions & 0 deletions tools/debugger/tests/do_break_async_generator.expected
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Stopped at tools/debugger/tests/do_break_async_generator.js:33 (in g() at line:3
Stopped at tools/debugger/tests/do_break_async_generator.js:21 (in f1() at line:20, col:1)
(escargot-debugger) bt
tools/debugger/tests/do_break_async_generator.js:21:5 [depth:0] (in f1)
tools/debugger/tests/do_break_async_generator.js:33:11 [depth:1] (in g)
tools/debugger/tests/do_break_async_generator.js:38:10
(escargot-debugger) s
Stopped at tools/debugger/tests/do_break_async_generator.js:44
Expand All @@ -25,13 +26,15 @@ Stopped at breakpoint:1 tools/debugger/tests/do_break_async_generator.js:21 (in
(escargot-debugger) bt
tools/debugger/tests/do_break_async_generator.js:21:5 [depth:0] (in f1)
tools/debugger/tests/do_break_async_generator.js:25:12 [depth:1] (in f2)
tools/debugger/tests/do_break_async_generator.js:34:11 [depth:2] (in g)
tools/debugger/tests/do_break_async_generator.js:38:10
(escargot-debugger) c
Stopped at breakpoint:1 tools/debugger/tests/do_break_async_generator.js:21 (in f1() at line:20, col:1)
(escargot-debugger) bt
tools/debugger/tests/do_break_async_generator.js:21:5 [depth:0] (in f1)
tools/debugger/tests/do_break_async_generator.js:25:12 [depth:1] (in f2)
tools/debugger/tests/do_break_async_generator.js:29:12 [depth:2] (in f3)
tools/debugger/tests/do_break_async_generator.js:35:11 [depth:3] (in g)
tools/debugger/tests/do_break_async_generator.js:38:10
(escargot-debugger) c
Connection closed.
3 changes: 3 additions & 0 deletions tools/debugger/tests/do_break_generator.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ Breakpoint 1 at tools/debugger/tests/do_break_generator.js:21 (in f1() at line:2
Stopped at breakpoint:1 tools/debugger/tests/do_break_generator.js:21 (in f1() at line:20, col:1)
(escargot-debugger) bt
tools/debugger/tests/do_break_generator.js:21:5 [depth:0] (in f1)
tools/debugger/tests/do_break_generator.js:33:11 [depth:1] (in g)
tools/debugger/tests/do_break_generator.js:39:1 [depth:3]
(escargot-debugger) c
Stopped at breakpoint:1 tools/debugger/tests/do_break_generator.js:21 (in f1() at line:20, col:1)
(escargot-debugger) bt
tools/debugger/tests/do_break_generator.js:21:5 [depth:0] (in f1)
tools/debugger/tests/do_break_generator.js:25:12 [depth:1] (in f2)
tools/debugger/tests/do_break_generator.js:34:11 [depth:2] (in g)
tools/debugger/tests/do_break_generator.js:42:3 [depth:4] (in h)
tools/debugger/tests/do_break_generator.js:44:1 [depth:5]
(escargot-debugger) c
Expand All @@ -21,6 +23,7 @@ Stopped at breakpoint:1 tools/debugger/tests/do_break_generator.js:21 (in f1() a
tools/debugger/tests/do_break_generator.js:21:5 [depth:0] (in f1)
tools/debugger/tests/do_break_generator.js:25:12 [depth:1] (in f2)
tools/debugger/tests/do_break_generator.js:29:12 [depth:2] (in f3)
tools/debugger/tests/do_break_generator.js:35:11 [depth:3] (in g)
tools/debugger/tests/do_break_generator.js:46:1 [depth:5]
(escargot-debugger) c
Connection closed.

0 comments on commit 24b81c6

Please sign in to comment.