This is an archive of the discontinued LLVM Phabricator instance.

[llvm-symbolizer][test] Simplify test input reading
ClosedPublic

Authored by jhenderson on Jan 30 2019, 2:50 AM.

Details

Summary

This change migrates most llvm-symbolizer tests away from reading input via stdin and instead using --obj + positional arguments for the file and addresses respectively, which makes the test easier to read.

One exception is the test test/tools/llvm-symbolizer/pdb/pdb.test, which was doing some manipulation on the input addresses. I've simplified this somewhat, but it still reads from stdin.

More changes to follow to simplify/break-up other tests.

Diff Detail

Repository
rL LLVM

Event Timeline

jhenderson created this revision.Jan 30 2019, 2:50 AM

See PR40070 comment 1 onwards for the motivation.

dblaikie accepted this revision.Jan 30 2019, 10:28 AM

Looks good - thanks!

test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test
1–3 ↗(On Diff #184264)

I don't think these three lines are needed anymore, maybe?

This revision is now accepted and ready to land.Jan 30 2019, 10:28 AM
jhenderson marked an inline comment as done.Jan 31 2019, 1:52 AM
jhenderson added inline comments.
test/DebugInfo/llvm-symbolizer-split-dwarf-no-skel-address.test
1–3 ↗(On Diff #184264)

I agree. I'll delete them too before committing.

This revision was automatically updated to reflect the committed changes.

In retrospect, I think removing those lines from llvm-symbolizer-split-dwarf-no-skel-address.test was a mistake: the test needs to be able to find the DWO for the test to be able to fail. I'll put a patch up shortly to reinstate them.