r304542 - Tie the macOS tests in test/Integration to the latest macOS SDK

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 2 04:26:35 PDT 2017


Author: arphaman
Date: Fri Jun  2 06:26:35 2017
New Revision: 304542

URL: http://llvm.org/viewvc/llvm-project?rev=304542&view=rev
Log:
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.

Modified:
    cfe/trunk/test/Integration/carbon.c
    cfe/trunk/test/Integration/cocoa-pch.m
    cfe/trunk/test/Integration/cocoa.m
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/Integration/carbon.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Integration/carbon.c?rev=304542&r1=304541&r2=304542&view=diff
==============================================================================
--- cfe/trunk/test/Integration/carbon.c (original)
+++ cfe/trunk/test/Integration/carbon.c Fri Jun  2 06:26:35 2017
@@ -1,4 +1,5 @@
 // RUN: %clang -fsyntax-only %s
+// REQUIRES: macos-sdk-10.12
 #ifdef __APPLE__
 #include <Carbon/Carbon.h>
 #endif

Modified: cfe/trunk/test/Integration/cocoa-pch.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Integration/cocoa-pch.m?rev=304542&r1=304541&r2=304542&view=diff
==============================================================================
--- cfe/trunk/test/Integration/cocoa-pch.m (original)
+++ cfe/trunk/test/Integration/cocoa-pch.m Fri Jun  2 06:26:35 2017
@@ -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

Modified: cfe/trunk/test/Integration/cocoa.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Integration/cocoa.m?rev=304542&r1=304541&r2=304542&view=diff
==============================================================================
--- cfe/trunk/test/Integration/cocoa.m (original)
+++ cfe/trunk/test/Integration/cocoa.m Fri Jun  2 06:26:35 2017
@@ -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

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=304542&r1=304541&r2=304542&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Fri Jun  2 06:26:35 2017
@@ -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)




More information about the cfe-commits mailing list