File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
lldb/test/API/tools/lldb-dap Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 \n hello world\r \n finally\0 \0 out \0 \0 \r \n err \0 \ 0 " ,
43+ "abcdefghi\r \n hello world\r \n finally\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 \n err\0 \0 \r \n " , console , f"full console message not found"
51+ )
You can’t perform that action at this time.
0 commit comments