Skip to content

Commit

Permalink
Make the FBMacDevice use a unique auxiliar dir
Browse files Browse the repository at this point in the history
Summary: This prevents data races when running macOS tests simultaneously on the same host with multiple companions.

Reviewed By: lawrencelomax

Differential Revision: D30045850

fbshipit-source-id: 79e1a92d36d3f3f1245b9bd5e862c3d42037f21d
  • Loading branch information
fgasperij authored and facebook-github-bot committed Aug 3, 2021
1 parent 880e838 commit 186a2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCTestBootstrap/MacStrategies/FBMacDevice.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ - (instancetype)init
if (self) {
_architecture = FBArchitectureX86_64;
_asyncQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0);
_auxillaryDirectory = NSTemporaryDirectory();
_auxillaryDirectory = [NSTemporaryDirectory() stringByAppendingPathComponent:NSProcessInfo.processInfo.globallyUniqueString];
_bundleIDToProductMap = [FBMacDevice fetchInstalledApplications];
_bundleIDToRunningTask = @{}.mutableCopy;
_launchdProcess = [[FBProcessInfo alloc] initWithProcessIdentifier:1 launchPath:@"/sbin/launchd" arguments:@[] environment:@{}];
Expand Down

0 comments on commit 186a2a8

Please sign in to comment.