summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2016-04-10 18:57:38 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2016-04-10 18:57:38 +0000
commit1aad8fb7720a21e22836d153a3a86eaa67242174 (patch)
tree3013bbc0e3f7fe6aa7ba9046c2eef953af535125 /lldb/packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py
parent8d16199b7b0247cf3047dc294ae5e180b72ac5fd (diff)
downloadbcm5719-llvm-1aad8fb7720a21e22836d153a3a86eaa67242174.tar.gz
bcm5719-llvm-1aad8fb7720a21e22836d153a3a86eaa67242174.zip
Provide more information in ThreadSanitizer's JSON data. Move remaining TSan logic from SBThread to InstrumentationRuntime plugin.
llvm-svn: 265905
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py b/lldb/packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py
index 1e5933c8aef..12cd13b03f3 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py
@@ -73,7 +73,7 @@ class TsanBasicTestCase(TestBase):
json_line = '\n'.join(output_lines[2:])
data = json.loads(json_line)
self.assertEqual(data["instrumentation_class"], "ThreadSanitizer")
- self.assertEqual(data["description"], "data-race")
+ self.assertEqual(data["issue_type"], "data-race")
self.assertEqual(len(data["mops"]), 2)
backtraces = thread.GetStopReasonExtendedBacktraces(lldb.eInstrumentationRuntimeTypeAddressSanitizer)
@@ -109,7 +109,7 @@ class TsanBasicTestCase(TestBase):
self.runCmd("continue")
# the stop reason of the thread should be a SIGABRT.
- self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
+ self.expect("thread list", "We should be stopped due a SIGABRT",
substrs = ['stopped', 'stop reason = signal SIGABRT'])
# test that we're in pthread_kill now (TSan abort the process)
OpenPOWER on IntegriCloud