Przeglądaj źródła

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

Guillem Jover 16 lat temu
rodzic
commit
c548891846
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      lib/dpkg/test/t-pkginfo.c

+ 6 - 0
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. */
 }