Skip to content

Commit

Permalink
Update TestGdbRemoteAbort and TestGdbRemoteSegFault to use `get_signa…
Browse files Browse the repository at this point in the history
…l_number`.

Reviewers: clayborg, ovyalov

Reviewed By: ovyalov

Subscribers: lldb-commits

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

llvm-svn: 239201
  • Loading branch information
chaoren committed Jun 6, 2015
1 parent 1233031 commit 05763f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def inferior_abort_received(self):

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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ def test_inferior_seg_fault_received_debugserver_dsym(self):
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'))

0 comments on commit 05763f5

Please sign in to comment.