diff options
Diffstat (limited to 'test/tsan/Darwin/gcd-io-barrier-race.mm')
-rw-r--r-- | test/tsan/Darwin/gcd-io-barrier-race.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/tsan/Darwin/gcd-io-barrier-race.mm b/test/tsan/Darwin/gcd-io-barrier-race.mm index 742267b98..c8e019e41 100644 --- a/test/tsan/Darwin/gcd-io-barrier-race.mm +++ b/test/tsan/Darwin/gcd-io-barrier-race.mm @@ -19,8 +19,7 @@ int main(int argc, const char *argv[]) { queue = dispatch_queue_create("my.queue", DISPATCH_QUEUE_CONCURRENT); sem = dispatch_semaphore_create(0); - NSString *ns_path = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"temp-gcd-io.%d", getpid()]]; - path = ns_path.fileSystemRepresentation; + path = tempnam(NULL, "libdispatch-io-barrier-race-"); char buf[1000]; data = dispatch_data_create(buf, sizeof(buf), NULL, DISPATCH_DATA_DESTRUCTOR_DEFAULT); |