[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:
Luboš Luňák 2020-08-17 22:54:45 +02:00
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