[XRay] Avoid actual linking when testing the driver
authorDean Michael Berris <dberris@google.com>
Tue, 26 Sep 2017 04:29:25 +0000 (04:29 +0000)
committerDean Michael Berris <dberris@google.com>
Tue, 26 Sep 2017 04:29:25 +0000 (04:29 +0000)
Use -### in the command to see just look for the output of -v.

Follow-up to D38226.

llvm-svn: 314194

clang/test/Driver/XRay/xray-shared-noxray.cpp

index 0278e0e..c279f93 100644 (file)
@@ -1,9 +1,9 @@
-// RUN: %clangxx -shared -o /dev/null -v -fxray-instrument %s
-// RUN: %clangxx -shared -o /dev/null -v -fxray-instrument %s 2>&1 | \
+// RUN: %clangxx -shared -o /dev/null -v -fxray-instrument %s -###
+// RUN: %clangxx -shared -o /dev/null -v -fxray-instrument %s -### 2>&1 | \
 // RUN:     FileCheck %s --check-prefix=SHARED
-// RUN: %clangxx -static -o /dev/null -v -fxray-instrument %s -DMAIN
-// RUN: %clangxx -static -o /dev/null -v -fxray-instrument %s 2>&1 -DMAIN | \
-// RUN:     FileCheck %s --check-prefix=STATIC
+// RUN: %clangxx -static -o /dev/null -v -fxray-instrument %s -### -DMAIN
+// RUN: %clangxx -static -o /dev/null -v -fxray-instrument %s -### 2>&1 -DMAIN \
+// RUN:     FileCheck %s --check-prefix=STATIC
 //
 // SHARED-NOT: {{clang_rt\.xray-}}
 // STATIC: {{clang_rt\.xray-}}