r320238 - Fix Driver/darwin-version.c test

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 8 18:56:48 PST 2017


Author: arphaman
Date: Fri Dec  8 18:56:48 2017
New Revision: 320238

URL: http://llvm.org/viewvc/llvm-project?rev=320238&view=rev
Log:
Fix Driver/darwin-version.c test

A target argument should be provided to avoid failures on non-Darwin

Modified:
    cfe/trunk/test/Driver/darwin-version.c

Modified: cfe/trunk/test/Driver/darwin-version.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/darwin-version.c?rev=320238&r1=320237&r2=320238&view=diff
==============================================================================
--- cfe/trunk/test/Driver/darwin-version.c (original)
+++ cfe/trunk/test/Driver/darwin-version.c Fri Dec  8 18:56:48 2017
@@ -141,6 +141,6 @@
 // CHECK-VERSION-WATCHOS-TARGET: "x86_64-apple-watchos4.0.0-simulator"
 
 // RUN: env MACOSX_DEPLOYMENT_TARGET=1000.1000 \
-// RUN:   %clang -c %s -### 2>&1 | \
+// RUN:   %clang -target x86_64-apple-darwin -c %s -### 2>&1 | \
 // RUN:   FileCheck --check-prefix=CHECK-VERSION-INVALID-ENV %s
 // CHECK-VERSION-INVALID-ENV: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=1000.1000'




More information about the cfe-commits mailing list