Skip to content

Commit 5834062

Browse files
committed
[lldb][lldb-dap] update the test case to use the correct output category.
1 parent 8838b06 commit 5834062

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lldb/test/API/tools/lldb-dap/cancel/TestDAP_cancel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_inflight_request(self):
8282

8383
blocking_seq = self.async_blocking_request(duration=self.timeoutval / 2)
8484
# Wait for the sleep to start to cancel the inflight request.
85-
self.collect_stdout(
85+
self.collect_console(
8686
timeout_secs=self.timeoutval,
8787
pattern="starting sleep",
8888
)

lldb/test/API/tools/lldb-dap/output/TestDAP_output.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ def test_output(self):
4040
output += self.get_stdout(timeout=lldbdap_testcase.DAPTestCaseBase.timeoutval)
4141
self.assertTrue(output and len(output) > 0, "expect program stdout")
4242
self.assertIn(
43-
"abcdefghi\r\nhello world\r\nfinally\0\0out\0\0\r\nerr\0\0",
43+
"abcdefghi\r\nhello world\r\nfinally\0\0",
4444
output,
4545
"full stdout not found in: " + repr(output),
4646
)
47+
console = self.get_console(timeout=self.timeoutval)
48+
self.assertTrue(console and len(console) > 0, "expect dap messages")
49+
self.assertIn(
50+
"out\0\0\r\nerr\0\0\r\n", console, f"full console message not found"
51+
)

0 commit comments

Comments
 (0)