From f9233a862c51e982a6ee2839a42f7f07a903a925 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sun, 30 Jun 2019 21:59:30 +0200 Subject: [PATCH] tests: cover more cases find_pkg_orphans_test:find_all_orphans_test --- tests/xbps/libxbps/find_pkg_orphans/main.c | 1 + .../libxbps/find_pkg_orphans/pkgdb-0.38.plist | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/tests/xbps/libxbps/find_pkg_orphans/main.c b/tests/xbps/libxbps/find_pkg_orphans/main.c index 2fa15ac7..8ec47eec 100644 --- a/tests/xbps/libxbps/find_pkg_orphans/main.c +++ b/tests/xbps/libxbps/find_pkg_orphans/main.c @@ -43,6 +43,7 @@ static const char expected_output[] = "xbps-triggers-1.0_1\n"; static const char expected_output_all[] = + "orphan2-0_1\n" "unexistent-pkg-0_1\n" "orphan1-0_1\n" "orphan0-0_1\n"; diff --git a/tests/xbps/libxbps/find_pkg_orphans/pkgdb-0.38.plist b/tests/xbps/libxbps/find_pkg_orphans/pkgdb-0.38.plist index a9064cb5..fc4deed9 100644 --- a/tests/xbps/libxbps/find_pkg_orphans/pkgdb-0.38.plist +++ b/tests/xbps/libxbps/find_pkg_orphans/pkgdb-0.38.plist @@ -198,6 +198,23 @@ pkgver orphan1-0_1 + run_depends + + orphan0>=0_1 + + state + installed + + orphan2 + + automatic-install + + pkgver + orphan2-0_1 + run_depends + + orphan0>=0_1 + state installed