Skip to content

Commit 1e8989e

Browse files
committed
[NFC][Driver] Fix commands not compatible w/ lit internal shell (#32841)
ee0f86d switched to use internal shell by default. Two commands are not running correctly with lit internal shell. Use explicitly shell or python to fix the issue.
1 parent 8166055 commit 1e8989e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

clang/test/Driver/clang-offload-bundler-bc-archive-support-linux-old-model.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,19 @@
9393
// RUN: clang-offload-bundler -unbundle -type=aoo -input=%t_bundled.a -targets=host-spir64_gen -output=%t_list4.txt
9494
// RUN: clang-offload-bundler -unbundle -type=aoo -input=%t_bundled.a -targets=host-spir64_x86_64 -output=%t_list5.txt
9595

96-
// RUN: cmp %t_unbundled_A.o `cat %t_list1.txt`
97-
// RUN: cmp %t_unbundled_B.o `cat %t_list2.txt`
98-
// RUN: cmp %t1.bc `cat %t_list3.txt`
99-
// RUN: cmp %t2.bc `cat %t_list4.txt`
100-
// RUN: cmp %t3.bc `cat %t_list5.txt`
96+
// RUN: sh -c 'cmp %t_unbundled_A.o `cat %t_list1.txt`'
97+
// RUN: sh -c 'cmp %t_unbundled_B.o `cat %t_list2.txt`'
98+
// RUN: sh -c 'cmp %t1.bc `cat %t_list3.txt`'
99+
// RUN: sh -c 'cmp %t2.bc `cat %t_list4.txt`'
100+
// RUN: sh -c 'cmp %t3.bc `cat %t_list5.txt`'
101101

102102
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
103103
// TEST4
104104
// Test archive unbundling for multiple targets
105105
// RUN: clang-offload-bundler -unbundle -type=aoo -input=%t_bundled.a -targets=sycl-spir64-unknown-unknown,host-spir64_gen -output=%t_listA.txt -output=%t_listB.txt
106106

107-
// RUN: cmp %t_unbundled_A.o `cat %t_listA.txt`
108-
// RUN: cmp %t2.bc `cat %t_listB.txt`
107+
// RUN: sh -c 'cmp %t_unbundled_A.o `cat %t_listA.txt`'
108+
// RUN: sh -c 'cmp %t2.bc `cat %t_listB.txt`'
109109

110110
#include <sycl/sycl.hpp>
111111

clang/test/Driver/clang-offload-bundler-bc-archive-support2-linux.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333

3434
// CHECK-LIST-LENGTH: 2
3535

36-
// RUN: cmp %t_unbundled.bc `grep .bc$ %t_list.txt`
37-
// RUN: cmp %t_unbundled.o `grep .o$ %t_list.txt`
36+
// RUN: sh -c 'cmp %t_unbundled.bc `grep .bc$ %t_list.txt`'
37+
// RUN: sh -c 'cmp %t_unbundled.o `grep .o$ %t_list.txt`'
3838

3939
void foo() {
4040
}

0 commit comments

Comments
 (0)