Просмотр исходного кода

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

Guillem Jover лет назад: 16
Родитель
Сommit
c548891846
1 измененных файлов с 6 добавлено и 0 удалено
  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. */
 }