Skip to content

Commit bcfd409

Browse files
committed
[test] fix fatlto tests on windows
/dev/null filename is not yet supported on windows. change the file that the linker writes to. Signed-off-by: Shankar Easwaran <seaswara@qti.qualcomm.com>
1 parent ca3b2e1 commit bcfd409

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/Common/LTO/EmbeddedLLVMBcObjects/EmbeddedLLVMBcObjects.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ RUN: %nm %t.lto.out | %filecheck %s --check-prefix=WITH-LTO
2626
RUN: %touch %t.empty
2727
RUN: %objcopy --add-section=.llvmbc=%t.empty \
2828
RUN: --set-section-flags=.llvmbc=exclude %t.native.o %t.empty.llvmbc.o
29-
RUN: %link %linkopts -flto -r %t.empty.llvmbc.o -o /dev/null \
29+
RUN: %link %linkopts -flto -r %t.empty.llvmbc.o -o %t1.out \
3030
RUN: --trace=lto 2>&1 | %filecheck %s --check-prefix=EMPTY-LLVMBC
3131

3232
# Invalid non-bitcode payload should diagnose instead of crashing.
3333
RUN: printf "eld\n" > %t.invalid
3434
RUN: %objcopy --add-section=.llvmbc=%t.invalid \
3535
RUN: --set-section-flags=.llvmbc=exclude %t.native.o %t.invalid.llvmbc.o
3636
RUN: %not %link %linkopts -flto -r %t.invalid.llvmbc.o \
37-
RUN: -o /dev/null --trace=lto 2>&1 | %filecheck %s --check-prefix=INVALID-LLVMBC
37+
RUN: -o %t1.out --trace=lto 2>&1 | %filecheck %s --check-prefix=INVALID-LLVMBC
3838

3939
HAS-LLVMBC-SECTION: .llvmbc
4040

test/Common/LTO/FatLTOObjects/FatLTOObjects.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ RUN: %readelf -S %t.reloc.o | %filecheck %s --check-prefix=NO-LTO-SECTION
3939
RUN: %touch %t.empty
4040
RUN: %objcopy --add-section=.llvm.lto=%t.empty --set-section-flags=.llvm.lto=exclude \
4141
RUN: --set-section-type=.llvm.lto=0x6fff4c0c %t.native.o %t.fat.o
42-
RUN: %link --fat-lto-objects -r %t.fat.o -o /dev/null \
42+
RUN: %link --fat-lto-objects -r %t.fat.o -o %t1.out \
4343
RUN: --trace=lto 2>&1 | %filecheck %s -check-prefix=EMBED-LTO
4444

4545
# Invalid non-bitcode payload should diagnose instead of crashing.
4646
RUN: printf "eld\n" > %t.invalid
4747
RUN: %objcopy --add-section=.llvm.lto=%t.invalid --set-section-flags=.llvm.lto=exclude \
4848
RUN: --set-section-type=.llvm.lto=0x6fff4c0c %t.native.o %t.fat.invalid.o
49-
RUN: %not %link --fat-lto-objects -r %t.fat.invalid.o -o /dev/null \
49+
RUN: %not %link --fat-lto-objects -r %t.fat.invalid.o -o %t1.out \
5050
RUN: --trace=lto 2>&1 | %filecheck %s -check-prefix=INVALID-EMBED-LTO
5151

5252
HAS-LTO-SECTION: .llvm.lto

0 commit comments

Comments
 (0)