From: Dean Michael Berris Date: Tue, 26 Sep 2017 04:29:25 +0000 (+0000) Subject: [XRay] Avoid actual linking when testing the driver X-Git-Tag: llvmorg-6.0.0-rc1~7191 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fb0545986cb29f9a7d0dc3e7fc18dfffdd0237b;p=platform%2Fupstream%2Fllvm.git [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 --- 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-}}