Update message that Main Thread Checker produces.
llvm-svn: 307464
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py b/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py
index 0cf259d..6a779ec 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py
@@ -41,7 +41,7 @@
thread = process.GetSelectedThread()
frame = thread.GetSelectedFrame()
- self.expect("thread info", substrs=['stop reason = -[NSView superview] must be called from main thread only'])
+ self.expect("thread info", substrs=['stop reason = -[NSView superview] must be used from main thread only'])
self.expect(
"thread info -s",
@@ -54,4 +54,4 @@
self.assertEqual(data["api_name"], "-[NSView superview]")
self.assertEqual(data["class_name"], "NSView")
self.assertEqual(data["selector"], "superview")
- self.assertEqual(data["description"], "-[NSView superview] must be called from main thread only")
+ self.assertEqual(data["description"], "-[NSView superview] must be used from main thread only")
diff --git a/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/MainThreadCheckerRuntime.cpp b/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/MainThreadCheckerRuntime.cpp
index 3c22b81..2ed7079 100644
--- a/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/MainThreadCheckerRuntime.cpp
+++ b/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/MainThreadCheckerRuntime.cpp
@@ -141,7 +141,7 @@
d->AddStringItem("class_name", className);
d->AddStringItem("selector", selector);
d->AddStringItem("description",
- apiName + " must be called from main thread only");
+ apiName + " must be used from main thread only");
d->AddIntegerItem("tid", thread_sp->GetIndexID());
d->AddItem("trace", trace_sp);
return dict_sp;