[lld][ELF][test] Improve deplib.s
authorJames Henderson <james.henderson@sony.com>
Thu, 26 Mar 2020 14:47:33 +0000 (14:47 +0000)
committerJames Henderson <james.henderson@sony.com>
Tue, 31 Mar 2020 11:41:18 +0000 (12:41 +0100)
commit0aa9c5429b83df1a5881f066475e2246a02491a5
treec68611ae542fcf98d5acaf4d1e491e71e9197df2
parent6aacdd6083d841cd4afb47ba184236844021ac46
[lld][ELF][test] Improve deplib.s

The test had a few style issues, and I noticed a hole in the coverage
(namely that the search order wasn't tested). Adding cases for the hole
in turn meant other cases weren't important.

The .so test case isn't important, since the code is shared code, so
I've removed it. Additionally, I've modified the usage of the "bar"
directive to show that an unneeded library must still be present, or the
link will fail, even though it isn't linked in.

Reviewed by: MaskRay, grimar

Differential Revision: https://reviews.llvm.org/D76851
lld/test/ELF/Inputs/deplibs-lib_bar.s [deleted file]
lld/test/ELF/Inputs/deplibs-lib_foo.s [deleted file]
lld/test/ELF/deplibs-colon-prefix.s
lld/test/ELF/deplibs.s