tests: cover more cases find_pkg_orphans_test:find_all_orphans_test

This commit is contained in:
Duncaen 2019-06-30 21:59:30 +02:00 committed by Juan RP
parent b60054267b
commit f9233a862c
2 changed files with 18 additions and 0 deletions

View File

@ -43,6 +43,7 @@ static const char expected_output[] =
"xbps-triggers-1.0_1\n"; "xbps-triggers-1.0_1\n";
static const char expected_output_all[] = static const char expected_output_all[] =
"orphan2-0_1\n"
"unexistent-pkg-0_1\n" "unexistent-pkg-0_1\n"
"orphan1-0_1\n" "orphan1-0_1\n"
"orphan0-0_1\n"; "orphan0-0_1\n";

View File

@ -198,6 +198,23 @@
<true/> <true/>
<key>pkgver</key> <key>pkgver</key>
<string>orphan1-0_1</string> <string>orphan1-0_1</string>
<key>run_depends</key>
<array>
<string>orphan0&gt;=0_1</string>
</array>
<key>state</key>
<string>installed</string>
</dict>
<key>orphan2</key>
<dict>
<key>automatic-install</key>
<true/>
<key>pkgver</key>
<string>orphan2-0_1</string>
<key>run_depends</key>
<array>
<string>orphan0&gt;=0_1</string>
</array>
<key>state</key> <key>state</key>
<string>installed</string> <string>installed</string>
</dict> </dict>