Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Unified Diff: testing/iossim/iossim.mm

Issue 2237313005: Reland of Work around simctl error when moving from Xcode 7 to Xcode 8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/iossim/iossim.mm
diff --git a/testing/iossim/iossim.mm b/testing/iossim/iossim.mm
index f1f0ca86c6e345b59caad9aa46cbf4d9ef8ead24..ebe6249fae7bba8c9e443c0d41199b80bdf5a02c 100644
--- a/testing/iossim/iossim.mm
+++ b/testing/iossim/iossim.mm
@@ -284,6 +284,16 @@
}
int main(int argc, char* const argv[]) {
+ // When the last running simulator is from Xcode 7, an Xcode 8 run will yeild
+ // a failure to "unload a stale CoreSimulatorService job" message. Sending a
+ // hidden simctl to do something simple (list devices) helpfully works around
+ // this issue.
+ XCRunTask* workaround_task = [[[XCRunTask alloc]
+ initWithArguments:@[ @"simctl", @"list", @"-j" ]] autorelease];
+ [workaround_task setStandardOutput:nil];
+ [workaround_task setStandardError:nil];
+ [workaround_task run];
+
NSString* app_path = nil;
NSString* xctest_path = nil;
NSString* cmd_args = nil;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698