From 83f6dd30522809fd6041e3cf7e6407033b4463cd Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Thu, 9 Jul 2015 17:38:14 -0700 Subject: [PATCH] Guard some test cases for use on Xcode 6+ only. --- Tests/SUInstallerTest.m | 2 ++ Tests/SUPipedUnarchiverTest.m | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Tests/SUInstallerTest.m b/Tests/SUInstallerTest.m index ceee0b6c..8b73abe3 100644 --- a/Tests/SUInstallerTest.m +++ b/Tests/SUInstallerTest.m @@ -30,6 +30,7 @@ [super tearDown]; } +#if __clang_major__ >= 6 - (void)testInstallIfRoot { uid_t uid = getuid(); @@ -61,5 +62,6 @@ [self waitForExpectationsWithTimeout:40 handler:nil]; [fm removeItemAtPath:expectedDestination error:nil]; } +#endif @end diff --git a/Tests/SUPipedUnarchiverTest.m b/Tests/SUPipedUnarchiverTest.m index 5bb163b4..eb5c7c0b 100644 --- a/Tests/SUPipedUnarchiverTest.m +++ b/Tests/SUPipedUnarchiverTest.m @@ -11,6 +11,7 @@ #import "SUUnarchiver.h" #import "SUPipedUnarchiver.h" +#if __clang_major__ >= 6 @interface SUPipedUnarchiverTest : XCTestCase @property (nonatomic, strong) XCTestExpectation *unarchived; @@ -78,3 +79,4 @@ } @end +#endif