forked from OSchip/llvm-project
Reword ThreadSanitizer message for invalid mutex reports.
llvm-svn: 270364
This commit is contained in:
parent
00d7c563d2
commit
52ded8072a
|
@ -49,7 +49,7 @@ class TsanMultipleTestCase(TestBase):
|
|||
(stop_description == "Data race detected") or
|
||||
(stop_description == "Use of deallocated memory detected") or
|
||||
(stop_description == "Thread leak detected") or
|
||||
(stop_description == "Use of an invalid mutex (e.g. uninitialized or destroyed) detected") or
|
||||
(stop_description == "Use of an uninitialized or destroyed mutex detected") or
|
||||
(stop_description == "Unlock of an unlocked mutex (or by a wrong thread) detected")
|
||||
)
|
||||
|
||||
|
|
|
@ -465,7 +465,7 @@ ThreadSanitizerRuntime::FormatDescription(StructuredData::ObjectSP report)
|
|||
} else if (description == "mutex-double-lock") {
|
||||
return "Double lock of a mutex";
|
||||
} else if (description == "mutex-invalid-access") {
|
||||
return "Use of an invalid mutex (e.g. uninitialized or destroyed)";
|
||||
return "Use of an uninitialized or destroyed mutex";
|
||||
} else if (description == "mutex-bad-unlock") {
|
||||
return "Unlock of an unlocked mutex (or by a wrong thread)";
|
||||
} else if (description == "mutex-bad-read-lock") {
|
||||
|
|
Loading…
Reference in New Issue