Skip to content

Commit 748ebbe

Browse files
rupprechtaokblast
authored andcommitted
[test][DebugInfo] Fix location of test build artifacts (llvm#165349)
The test added in llvm#161067 writes artifacts to the current dir, i.e. `test.o` / `test.dwo` / `test.dwp`, which might not be writeable. Tests should use `%t` for test artifact location, i.e. `%t.o` / `%t.dwo` / `%t.dwp` However, since `"test.dwo"` is part of the assembly source file used as a test input, and that's not something lit will substitute, that typical approach doesn't work. We can instead ensure the output is in a good location by running `cd %t` (after setting it up).
1 parent 10418bf commit 748ebbe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/test/tools/llvm-dwarfdump/X86/type_units_split_dwp_v4.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
## This test uses TU index for type parsing in dwp and makes sure the DWARF4 type is
22
## successfully retrieved.
33

4+
## cd to a unique dir so we can refer to the file as just "test.dwo" in the
5+
## assembly test input below.
6+
# RUN: rm -rf %t
7+
# RUN: mkdir %t
8+
# RUN: cd %t
9+
410
# RUN: llvm-mc %s --split-dwarf-file=test.dwo -filetype obj -triple x86_64 -o test.o
511
# RUN: llvm-dwp -e test.o -o test.dwp
612
# RUN: llvm-dwarfdump test.dwp | FileCheck %s

0 commit comments

Comments
 (0)