Skip to content

Commit 135a493

Browse files
committed
Fix TestNoGPacketSupported on linux
The mock server pretends the process stopped with signal 17, which is SIGCHLD on linux. This causes lldb to resume to process, utterly confusing the test. Lldb probably shouldn't resume in this case, but for now this issue can be fixed by changing the signal number to 2, which is SIGINT just about anywhere.
1 parent 4edf0cb commit 135a493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class TestNoGPacketSupported(GDBRemoteTestBase):
2626
def test(self):
2727
class MyResponder(MockGDBServerResponder):
2828
def haltReason(self):
29-
return "T11thread:1ff0d;threads:1ff0d;thread-pcs:000000010001bc00;00:7882773ce0ffffff;01:1122334455667788;03:00bc010001000000;"
29+
return "T02thread:1ff0d;threads:1ff0d;thread-pcs:000000010001bc00;00:7882773ce0ffffff;01:1122334455667788;03:00bc010001000000;"
3030

3131
def threadStopInfo(self, threadnum):
32-
return "T11thread:1ff0d;threads:1ff0d;thread-pcs:000000010001bc00;00:7882773ce0ffffff;01:1122334455667788;03:00bc010001000000;"
32+
return "T02thread:1ff0d;threads:1ff0d;thread-pcs:000000010001bc00;00:7882773ce0ffffff;01:1122334455667788;03:00bc010001000000;"
3333

3434
def writeRegisters(self):
3535
return "E02"

0 commit comments

Comments
 (0)