[compiler-rt] r306506 - [XRay][compiler-rt][NFC] Move test case into correct directory.
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 27 22:21:15 PDT 2017
Author: dberris
Date: Tue Jun 27 22:21:15 2017
New Revision: 306506
URL: http://llvm.org/viewvc/llvm-project?rev=306506&view=rev
Log:
[XRay][compiler-rt][NFC] Move test case into correct directory.
Followup to D34669.
Added:
compiler-rt/trunk/test/xray/TestCases/Linux/always-never-instrument.cc
- copied, changed from r306505, compiler-rt/trunk/test/xray/TestCases/always-never-instrument.cc
Removed:
compiler-rt/trunk/test/xray/TestCases/always-never-instrument.cc
Copied: compiler-rt/trunk/test/xray/TestCases/Linux/always-never-instrument.cc (from r306505, compiler-rt/trunk/test/xray/TestCases/always-never-instrument.cc)
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/xray/TestCases/Linux/always-never-instrument.cc?p2=compiler-rt/trunk/test/xray/TestCases/Linux/always-never-instrument.cc&p1=compiler-rt/trunk/test/xray/TestCases/always-never-instrument.cc&r1=306505&r2=306506&rev=306506&view=diff
==============================================================================
(empty)
Removed: compiler-rt/trunk/test/xray/TestCases/always-never-instrument.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/xray/TestCases/always-never-instrument.cc?rev=306505&view=auto
==============================================================================
--- compiler-rt/trunk/test/xray/TestCases/always-never-instrument.cc (original)
+++ compiler-rt/trunk/test/xray/TestCases/always-never-instrument.cc (removed)
@@ -1,23 +0,0 @@
-// Test that the always/never instrument lists apply.
-// RUN: echo "fun:main" > %tmp-always.txt
-// RUN: echo "fun:__xray*" > %tmp-never.txt
-// RUN: %clangxx_xray \
-// RUN: -fxray-never-instrument=%tmp-never.txt \
-// RUN: -fxray-always-instrument=%tmp-always.txt \
-// RUN: %s -o %t
-// RUN: %llvm_xray extract -symbolize %t | \
-// RUN: FileCheck %s --check-prefix NOINSTR
-// RUN: %llvm_xray extract -symbolize %t | \
-// RUN: FileCheck %s --check-prefix ALWAYSINSTR
-// REQUIRES: x86_64-linux
-// REQUIRES: built-in-llvm-tree
-
-// NOINSTR-NOT: {{.*__xray_NeverInstrumented.*}}
-int __xray_NeverInstrumented() {
- return 0;
-}
-
-// ALWAYSINSTR: {{.*function-name:.*main.*}}
-int main(int argc, char *argv[]) {
- return __xray_NeverInstrumented();
-}
More information about the llvm-commits
mailing list