summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-04-11 18:14:16 +0000
committerJulian Lettner <jlettner@apple.com>2019-04-11 18:14:16 +0000
commitedea731af240a89836775c4b74e8c6069c34e4d5 (patch)
treed951c5ada2acdf2f02526295477af5eda55d2e95
parent0f7a0c71c6ba618507d6106b769738e760fc88e9 (diff)
downloadbcm5719-llvm-edea731af240a89836775c4b74e8c6069c34e4d5.tar.gz
bcm5719-llvm-edea731af240a89836775c4b74e8c6069c34e4d5.zip
[TSan][libdispatch] Change test to have two simultaneous timers
Change test semantics by waiting for both timer callbacks at the end instead of serializing operations: start/wait timer 1 then 2. Reviewed By: kubamracek Differential Revision: https://reviews.llvm.org/D60476 llvm-svn: 358204
-rw-r--r--compiler-rt/test/tsan/Darwin/gcd-after.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/Darwin/gcd-after.mm b/compiler-rt/test/tsan/Darwin/gcd-after.mm
index 38c2effcaf8..59281e76d6d 100644
--- a/compiler-rt/test/tsan/Darwin/gcd-after.mm
+++ b/compiler-rt/test/tsan/Darwin/gcd-after.mm
@@ -27,12 +27,12 @@ int main(int argc, const char *argv[]) {
dispatch_semaphore_signal(done);
});
- dispatch_semaphore_wait(done, DISPATCH_TIME_FOREVER);
my_global2 = 10;
dispatch_after_f(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(10 * NSEC_PER_MSEC)), q, NULL, &callback);
dispatch_semaphore_wait(done, DISPATCH_TIME_FOREVER);
+ dispatch_semaphore_wait(done, DISPATCH_TIME_FOREVER);
fprintf(stderr, "done\n");
return 0;
}
OpenPOWER on IntegriCloud