[test] Fix accidental match in parent_recurse_depth.s
authorThomas Preud'homme <thomasp@graphcore.ai>
Fri, 4 Jun 2021 08:55:33 +0000 (09:55 +0100)
committerThomas Preud'homme <thomasp@graphcore.ai>
Fri, 4 Jun 2021 10:23:27 +0000 (11:23 +0100)
commitd7e0948242b8b05c1ebc0f46bf7aa37273a1d521
tree538f65af828093b90891f74450f49ddc5114b591
parent0a655c62eca878cd5f366c08a4a5fee1b8723ce8
[test] Fix accidental match in parent_recurse_depth.s

The CHECK-NOT directives in
tools/llvm-dwarfdump/X86/parent_recurse_depth.s can accidentally match
something in the path of the object file created by yaml2obj, for
example:

llvm-project/llvm/test/tools/llvm-dwarfdump/X86/parent_recurse_depth.s:13:12:
error: ONE-NOT: excluded string found in input
           ^
<stdin>:1:22: note: found here
builds/llvm-projects/mainline/release/test/tools/llvm-dwarfdump/X86/Output/parent_recurse_depth.s.tmp.o: file format elf64-x86-64
                     ^~~~

This commit alleviate this issue by consuming the file name from the
output, forcing all the CHECK-NOT to match what comes after.

Reviewed By: Higuoxing

Differential Revision: https://reviews.llvm.org/D103676
llvm/test/tools/llvm-dwarfdump/X86/parent_recurse_depth.s