summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-06-02 11:26:35 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-06-02 11:26:35 +0000
commit01bf58d6ecd9304a7ab5180ff78f3c78187282f4 (patch)
tree09213bac113f35a64b461db0f0254052166febaf
parent9e390139419ace6e2fc8ae1ea0c97f047917011c (diff)
downloadbcm5719-llvm-01bf58d6ecd9304a7ab5180ff78f3c78187282f4.tar.gz
bcm5719-llvm-01bf58d6ecd9304a7ab5180ff78f3c78187282f4.zip
Tie the macOS tests in test/Integration to the latest macOS SDK
This change will ensure that these tests won't fail when a new SDK that utilizes new compiler features is used. See https://reviews.llvm.org/D32178 for more context. llvm-svn: 304542
-rw-r--r--clang/test/Integration/carbon.c1
-rw-r--r--clang/test/Integration/cocoa-pch.m1
-rw-r--r--clang/test/Integration/cocoa.m1
-rw-r--r--clang/test/lit.cfg3
4 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Integration/carbon.c b/clang/test/Integration/carbon.c
index 0498116dd18..3cae3912268 100644
--- a/clang/test/Integration/carbon.c
+++ b/clang/test/Integration/carbon.c
@@ -1,4 +1,5 @@
// RUN: %clang -fsyntax-only %s
+// REQUIRES: macos-sdk-10.12
#ifdef __APPLE__
#include <Carbon/Carbon.h>
#endif
diff --git a/clang/test/Integration/cocoa-pch.m b/clang/test/Integration/cocoa-pch.m
index 0159b320149..fa3ccea3789 100644
--- a/clang/test/Integration/cocoa-pch.m
+++ b/clang/test/Integration/cocoa-pch.m
@@ -1,6 +1,7 @@
// RUN: %clang -arch x86_64 -x objective-c-header %s -o %t.h.pch
// RUN: touch %t.empty.m
// RUN: %clang -arch x86_64 -fsyntax-only %t.empty.m -include %t.h -Xclang -ast-dump 2>&1 > /dev/null
+// REQUIRES: macos-sdk-10.12
#ifdef __APPLE__
#include <Cocoa/Cocoa.h>
#endif
diff --git a/clang/test/Integration/cocoa.m b/clang/test/Integration/cocoa.m
index d814b3ee21b..91d86825084 100644
--- a/clang/test/Integration/cocoa.m
+++ b/clang/test/Integration/cocoa.m
@@ -1,4 +1,5 @@
// RUN: %clang -arch x86_64 %s -fsyntax-only -Xclang -print-stats
+// REQUIRES: macos-sdk-10.12
#ifdef __APPLE__
#include <Cocoa/Cocoa.h>
#endif
diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg
index a5e8b9de994..e72eca6bd39 100644
--- a/clang/test/lit.cfg
+++ b/clang/test/lit.cfg
@@ -529,3 +529,6 @@ if run_console_tests != 0:
config.available_features.add('console')
lit.util.usePlatformSdkOnDarwin(config, lit_config)
+macOSSDKVersion = lit.util.findPlatformSdkVersionOnMacOS(config, lit_config)
+if macOSSDKVersion is not None:
+ config.available_features.add('macos-sdk-' + macOSSDKVersion)
OpenPOWER on IntegriCloud