The following commit has been merged in the master branch:
commit c54889184636f451950b927823f899a62843019e
Author: Guillem Jover <[email protected]>
Date:   Mon Jul 26 04:24:55 2010 +0200

    libdpkg: Add additional branches to informative() test-case

diff --git a/lib/dpkg/test/t-pkginfo.c b/lib/dpkg/test/t-pkginfo.c
index e6e3abc..dbb3098 100644
--- a/lib/dpkg/test/t-pkginfo.c
+++ b/lib/dpkg/test/t-pkginfo.c
@@ -30,9 +30,15 @@ test_pkginfo_informative(void)
        struct pkginfo pkg;
 
        blankpackage(&pkg);
+       test_fail(informative(&pkg, &pkg.installed));
+
        pkg.want = want_purge;
        test_pass(informative(&pkg, &pkg.installed));
 
+       blankpackage(&pkg);
+       pkg.installed.description = "test description";
+       test_pass(informative(&pkg, &pkg.installed));
+
        /* FIXME: Complete. */
 }
 

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to