From 9315ee9ee62f91cfb6e667f15e1cdd7054eecf55 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 14 Jan 2019 14:07:19 -0600 Subject: [PATCH] tests: add orphaned-requires-private test --- tests/requires.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/requires.sh b/tests/requires.sh index 0100d1a..5cd874a 100755 --- a/tests/requires.sh +++ b/tests/requires.sh @@ -14,7 +14,8 @@ tests_init \ missing \ requires_internal \ requires_internal_missing \ - requires_internal_collision + requires_internal_collision \ + orphaned_requires_private libs_body() { @@ -112,3 +113,12 @@ requires_internal_collision_body() -o inline:"-I/test/local/include/foo \n" \ pkgconf --with-path="${selfdir}/lib1" --cflags requires-internal-collision } + +orphaned_requires_private_body() +{ + atf_check \ + -s exit:1 \ + -e ignore \ + -o ignore \ + pkgconf --with-path="${selfdir}/lib1" --cflags --libs orphaned-requires-private +}