Skip to content

Commit 6a30c21

Browse files
committed
rebase
Created using spr 1.3.4
1 parent cfa4a1a commit 6a30c21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/test/asan/TestCases/asan_lsan_deadlock.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
* [Worker Thread] ASan: lock B -> requests lock A
2525
*
2626
* 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-
*/
27+
* With proper lock ordering enforcement, watchdog should NOT trigger - test exits with Asan report.
28+
*/
3029

3130
#include <mutex>
3231
#include <sanitizer/lsan_interface.h>
@@ -37,6 +36,7 @@
3736
void Watchdog() {
3837
// Safety mechanism: Turn infinite deadlock into finite test failure
3938
sleep(60);
39+
// Unexpected. "not" in RUN will fail if we reached here.
4040
_exit(0);
4141
}
4242

0 commit comments

Comments
 (0)