]> granicus.if.org Git - clang/commitdiff
Fix Driver/darwin-version.c test
authorAlex Lorenz <arphaman@gmail.com>
Sat, 9 Dec 2017 02:56:48 +0000 (02:56 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Sat, 9 Dec 2017 02:56:48 +0000 (02:56 +0000)
A target argument should be provided to avoid failures on non-Darwin

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320238 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/darwin-version.c

index 21b266b0b96b5388707ad4fe59213c9d09e9b830..9fddb1abcfa6506d4da55a0cac0054125a071870 100644 (file)
 // 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'