[Lldb-commits] [lldb] r239201 - Update TestGdbRemoteAbort and TestGdbRemoteSegFault to use `get_signal_number`.

Chaoren Lin chaorenl at google.com
Fri Jun 5 17:19:01 PDT 2015


Author: chaoren
Date: Fri Jun  5 19:19:01 2015
New Revision: 239201

URL: http://llvm.org/viewvc/llvm-project?rev=239201&view=rev
Log:
Update TestGdbRemoteAbort and TestGdbRemoteSegFault to use `get_signal_number`.

Reviewers: clayborg, ovyalov

Reviewed By: ovyalov

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D10286

Modified:
    lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
    lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py

Modified: lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py?rev=239201&r1=239200&r2=239201&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py (original)
+++ lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py Fri Jun  5 19:19:01 2015
@@ -21,7 +21,8 @@ class TestGdbRemoteAbort(gdbremote_testc
 
         hex_exit_code = context.get("hex_exit_code")
         self.assertIsNotNone(hex_exit_code)
-        self.assertEquals(int(hex_exit_code, 16), signal.SIGABRT)
+        self.assertEquals(int(hex_exit_code, 16),
+                          lldbutil.get_signal_number('SIGABRT'))
 
     @debugserver_test
     @dsym_test

Modified: lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py?rev=239201&r1=239200&r2=239201&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py (original)
+++ lldb/trunk/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py Fri Jun  5 19:19:01 2015
@@ -37,4 +37,4 @@ class TestGdbRemoteSegFault(gdbremote_te
     def test_inferior_seg_fault_received_llgs_dwarf(self):
         self.init_llgs_test()
         self.buildDwarf()
-        self.inferior_seg_fault_received(signal.SIGSEGV)
+        self.inferior_seg_fault_received(lldbutil.get_signal_number('SIGSEGV'))





More information about the lldb-commits mailing list