Open
Description
I get these failures when running LLVM tests without X86 target:
Failed Tests (5):
LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-compare-logical-elements.test
LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-select-logical-elements.test
LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/03-wasm-incorrect-lexical-scope-typedef.test
LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/04-wasm-missing-nested-enumerators.test
LLVM :: tools/llvm-debuginfo-analyzer/WebAssembly/05-wasm-incorrect-lexical-scope-variable.test
The gist of the issue (here tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-compare-logical-elements.test
):
+ [...]/build/bin/llvm-debuginfo-analyzer --attribute=level --compare=types --report=view --print=symbols,types [...]/build/test/tools/llvm-debuginfo-analyzer/WebAssembly/Output/01-wasm-compare-logical-elements.test.tmp.test-clang.o [...]/test/tools/llvm-debuginfo-analyzer/WebAssembly/../DWARF/Inputs/test-dwarf-gcc.o
+ [...]/build/bin/FileCheck --strict-whitespace -check-prefix=ONE [...]/test/tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-compare-logical-elements.test
[...]/test/tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-compare-logical-elements.test:31:13: error: ONE: expected string not found in input
; ONE: Reference: '{{.*}}test-clang.o'
^
<stdin>:1:1: note: scanning from here
^
<stdin>:2:19: note: possible intended match here
llvm-debuginfo-analyzer: error: No available targets are compatible with triple "x86_64-unknown-unknown".
^
And indeed:
> file llvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/test-dwarf-gcc.o
llvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/test-dwarf-gcc.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
For the other tests:
tools/llvm-debuginfo-analyzer/WebAssembly/01-wasm-select-logical-elements.test
also refersllvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/test-dwarf-gcc.o
.tools/llvm-debuginfo-analyzer/WebAssembly/03-wasm-incorrect-lexical-scope-typedef.test
refers tollvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/pr-44884-dwarf-gcc.o
.tools/llvm-debuginfo-analyzer/WebAssembly/04-wasm-missing-nested-enumerators.test
refers tollvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/pr-46466-dwarf-gcc.o
.tools/llvm-debuginfo-analyzer/WebAssembly/05-wasm-incorrect-lexical-scope-variable.test
refers tollvm/test/tools/llvm-debuginfo-analyzer/DWARF/Inputs/pr-43860-dwarf-gcc.o
.
Is it intentional that WebAssembly tests use X86 object files? If yes, we should probably add REQUIRES: x86-registered-target
.
@CarlosAlbertoEnciso as the test cases seem to come from b19cfb9.