]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
merged from lp:~donkult/apt/sid
[apt.git] / test / integration / framework
index 2d6ada117c73abae12d28d28090a512e5c529d79..da85d23325c78410220288272e53f27e5f4ec032 100644 (file)
@@ -736,6 +736,11 @@ testfileequal() {
        fi
 }
 
+testempty() {
+       msgtest "Test for no output of" "$*"
+       test -z "$($* 2>&1)" && msgpass || msgfail
+}
+
 testequal() {
        local COMPAREFILE=$(mktemp)
        addtrap "rm $COMPAREFILE;"