From 7fb0545986cb29f9a7d0dc3e7fc18dfffdd0237b Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Tue, 26 Sep 2017 04:29:25 +0000 Subject: [PATCH] [XRay] Avoid actual linking when testing the driver 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/test/Driver/XRay/xray-shared-noxray.cpp b/clang/test/Driver/XRay/xray-shared-noxray.cpp index 0278e0e..c279f93 100644 --- a/clang/test/Driver/XRay/xray-shared-noxray.cpp +++ b/clang/test/Driver/XRay/xray-shared-noxray.cpp @@ -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-}} -- 2.7.4