1 // RUN: %clang_tsan -O1 %s -o %t && %env_tsan_opts=flush_memory_ms=1:memory_limit_mb=1 %run %t 2>&1 | FileCheck %s
3 // setuid(0) hangs on powerpc64 big endian. When this is fixed remove
4 // the unsupported flag.
5 // https://llvm.org/bugs/show_bug.cgi?id=25799
7 // UNSUPPORTED: target=powerpc64-unknown-linux-gnu{{.*}}
13 // Test that setuid call works in presence of stoptheworld.
16 unsigned long long tp0
, tp1
;
17 tp0
= monotonic_clock_ns();
18 tp1
= monotonic_clock_ns();
19 while (tp1
- tp0
< 3 * 1000000000ull) {
20 tp1
= monotonic_clock_ns();
23 fprintf(stderr
, "DONE\n");