summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/deadlock_detector_stress_test.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-03-17 14:56:04 +0000
committerKostya Serebryany <kcc@google.com>2014-03-17 14:56:04 +0000
commitf01c094cddfff1c5a139fc4a822c552586f5a1e6 (patch)
treef9a357d03efccf0301eb4925f3f27a85aa268bfe /compiler-rt/test/tsan/deadlock_detector_stress_test.cc
parent897653962728e595f52ddd55382253c1d4dbabc8 (diff)
downloadbcm5719-llvm-f01c094cddfff1c5a139fc4a822c552586f5a1e6.tar.gz
bcm5719-llvm-f01c094cddfff1c5a139fc4a822c552586f5a1e6.zip
[sanitizer] reverse the order of the stack traces printed for every pair of locks in the deadlock report (first print the 'from' node, then print the 'to' node of the deadlock graph)
llvm-svn: 204043
Diffstat (limited to 'compiler-rt/test/tsan/deadlock_detector_stress_test.cc')
-rw-r--r--compiler-rt/test/tsan/deadlock_detector_stress_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/test/tsan/deadlock_detector_stress_test.cc b/compiler-rt/test/tsan/deadlock_detector_stress_test.cc
index a85c2e891ff..19a9bb920a3 100644
--- a/compiler-rt/test/tsan/deadlock_detector_stress_test.cc
+++ b/compiler-rt/test/tsan/deadlock_detector_stress_test.cc
@@ -417,13 +417,13 @@ class LockTest {
fprintf(stderr, "Starting Test16: detailed output test with two locks\n");
// CHECK: Starting Test16
// CHECK: WARNING: ThreadSanitizer: lock-order-inversion
- // CHECK: LockTest::Acquire1
- // CHECK-NEXT: LockTest::Acquire_0_then_1
// CHECK: LockTest::Acquire0
// CHECK-NEXT: LockTest::Acquire_0_then_1
- // CHECK: LockTest::Acquire0
- // CHECK-NEXT: LockTest::Acquire_1_then_0
// CHECK: LockTest::Acquire1
+ // CHECK-NEXT: LockTest::Acquire_0_then_1
+ // CHECK: LockTest::Acquire1
+ // CHECK-NEXT: LockTest::Acquire_1_then_0
+ // CHECK: LockTest::Acquire0
// CHECK-NEXT: LockTest::Acquire_1_then_0
Init(5);
Acquire_0_then_1();
OpenPOWER on IntegriCloud