From bd081d84a7627a98eff10314652ead65a665c98d Mon Sep 17 00:00:00 2001 From: Alex Akers Date: Tue, 16 Jun 2015 02:51:29 -0700 Subject: [PATCH] [React Native] Update operating system and architecture check --- .../UIExplorerIntegrationTests/IntegrationTestsTests.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Examples/UIExplorer/UIExplorerIntegrationTests/IntegrationTestsTests.m b/Examples/UIExplorer/UIExplorerIntegrationTests/IntegrationTestsTests.m index ddd204f99..9783fca38 100644 --- a/Examples/UIExplorer/UIExplorerIntegrationTests/IntegrationTestsTests.m +++ b/Examples/UIExplorer/UIExplorerIntegrationTests/IntegrationTestsTests.m @@ -25,11 +25,12 @@ - (void)setUp { -#ifdef __LP64__ - RCTAssert(!__LP64__, @"Tests should be run on 32-bit device simulators (e.g. iPhone 5)"); +#if __LP64__ + #error Tests should be run on 32-bit device simulators (e.g. iPhone 5) #endif - NSString *version = [[UIDevice currentDevice] systemVersion]; - RCTAssert([version integerValue] == 8, @"Tests should be run on iOS 8.x, found %@", version); + + NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion]; + RCTAssert(version.majorVersion == 8 || version.minorVersion == 3, @"Tests should be run on iOS 8.3, found %zd.%zd.%zd", version.majorVersion, version.minorVersion, version.patchVersion); _runner = RCTInitRunnerForApp(@"Examples/UIExplorer/UIExplorerIntegrationTests/js/IntegrationTestsApp"); // If tests have changes, set recordMode = YES below and run the affected