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):
82
82
83
83
blocking_seq = self .async_blocking_request (duration = self .timeoutval / 2 )
84
84
# Wait for the sleep to start to cancel the inflight request.
85
- self .collect_stdout (
85
+ self .collect_console (
86
86
timeout_secs = self .timeoutval ,
87
87
pattern = "starting sleep" ,
88
88
)
Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ def test_output(self):
40
40
output += self .get_stdout (timeout = lldbdap_testcase .DAPTestCaseBase .timeoutval )
41
41
self .assertTrue (output and len (output ) > 0 , "expect program stdout" )
42
42
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 " ,
44
44
output ,
45
45
"full stdout not found in: " + repr (output ),
46
46
)
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