This is an archive of the discontinued LLVM Phabricator instance.

[test] Fix accidental match in parent_recurse_depth.s
ClosedPublic

Authored by thopre on Jun 4 2021, 2:00 AM.

Details

Summary

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.

Diff Detail

Event Timeline

thopre created this revision.Jun 4 2021, 2:00 AM
thopre requested review of this revision.Jun 4 2021, 2:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2021, 2:00 AM
Higuoxing accepted this revision.Jun 4 2021, 3:03 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 4 2021, 3:03 AM
This revision was automatically updated to reflect the committed changes.