Skip to content

Commit 291b8ce

Browse files
[XRay] Make Test Work with Internal Shell
There was one test that set an environment variable without using env and also used a subshell. These are features the internal shell does not support. Rewrite the test to use readfile/env. Reviewers: fmayer, MaskRay Reviewed By: fmayer Pull Request: #165143
1 parent d2c5e49 commit 291b8ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler-rt/test/xray/TestCases/Posix/fdr-single-thread.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// RUN: %clangxx_xray -g -std=c++11 %s -o %t
22
// RUN: rm -f fdr-logging-1thr-*
3-
// RUN: XRAY_OPTIONS=XRAY_OPTIONS="verbosity=1 patch_premain=true \
3+
// RUN: env XRAY_OPTIONS=XRAY_OPTIONS="verbosity=1 patch_premain=true \
44
// RUN: xray_fdr_log=true \
55
// RUN: xray_fdr_log_func_duration_threshold_us=0 \
66
// RUN: xray_logfile_base=fdr-logging-1thr-" %run %t 2>&1
7+
// RUN: ls fdr-logging-1thr-* | head -n1 | tr -d '\n' > %t.xray_input
78
// RUN: %llvm_xray convert --output-format=yaml --symbolize --instr_map=%t \
8-
// RUN: "`ls fdr-logging-1thr-* | head -n1`" | FileCheck %s
9+
// RUN: "%{readfile:%t.xray_input}" | FileCheck %s
910
// RUN: rm fdr-logging-1thr-*
1011

1112
// UNSUPPORTED: target=arm{{.*}}

0 commit comments

Comments
 (0)