We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa4a1a commit 6a30c21Copy full SHA for 6a30c21
compiler-rt/test/asan/TestCases/asan_lsan_deadlock.cpp
@@ -24,9 +24,8 @@
24
* [Worker Thread] ASan: lock B -> requests lock A
25
*
26
* Success Criteria:
27
- * With proper lock ordering enforcement, watchdog should NOT trigger - test exits normally.
28
- * If deadlock occurs, watchdog terminates via _exit(1) after 10s timeout.
29
- */
+ * With proper lock ordering enforcement, watchdog should NOT trigger - test exits with Asan report.
+ */
30
31
#include <mutex>
32
#include <sanitizer/lsan_interface.h>
@@ -37,6 +36,7 @@
37
36
void Watchdog() {
38
// Safety mechanism: Turn infinite deadlock into finite test failure
39
sleep(60);
+ // Unexpected. "not" in RUN will fail if we reached here.
40
_exit(0);
41
}
42
0 commit comments