mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-25 10:48:14 +00:00
[lldb] avoid assert in threadsanitizer tests on linux
The tests are unsupported on linux, but they assert in Thread::GetStopDescriptionRaw() because of empty stop reason description. And it is empty because InstrumentationRuntimeTSan::NotifyBreakpointHit() fails to get report from InstrumentationRuntimeTSan::RetrieveReportData(), which is possibly(?) the reason why this is unsupported on linux. Add a dummy stop reason description for this case, which changes the test result from failing to unsupported.
This commit is contained in:
parent
d1be928d23
commit
f369d51896
@ -855,6 +855,8 @@ bool InstrumentationRuntimeTSan::NotifyBreakpointHit(
|
||||
});
|
||||
report->GetAsDictionary()->AddBooleanItem("all_addresses_are_same",
|
||||
all_addresses_are_same);
|
||||
} else {
|
||||
stop_reason_description = "unknown ThreadSanitizer stop reason";
|
||||
}
|
||||
|
||||
// Make sure this is the right process
|
||||
|
Loading…
x
Reference in New Issue
Block a user