Skip to content

Commit b7195e8

Browse files
committed
[ELF,test] Add env LLD_IN_TEST=1 to make some tests work if RUN_LLD_MAIN_TWICE
1 parent a9e92be commit b7195e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lld/test/ELF/basic.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ _start:
220220

221221
## Test erroring on a recursive response file, but only once.
222222
# RUN: echo @%t.responsefile > %t.responsefile
223-
# RUN: not ld.lld %t @%t.responsefile 2>&1 | FileCheck %s --check-prefix=RECRSP
223+
# RUN: env LLD_IN_TEST=1 not ld.lld %t @%t.responsefile 2>&1 | FileCheck %s --check-prefix=RECRSP
224224
# RECRSP: recursive expansion of: '{{.*}}.responsefile'
225225
# RECRSP-NOT: recursive expansion of
226226

lld/test/ELF/stdout.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
44
## Test that we only write to "-" once.
5-
# RUN: LLD_IN_TEST=2 ld.lld %t.o -o - > %t1
5+
# RUN: env LLD_IN_TEST=2 ld.lld %t.o -o - > %t1
66
# RUN: llvm-objdump -d %t1 | FileCheck %s
77

88
# CHECK: nop

0 commit comments

Comments
 (0)