summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-07-09 08:24:46 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-07-09 08:24:46 +0200
commite77aedb863e2a9eebb5aa9628121d350c029527d (patch)
treedc314b4157aba3fa9a67c2d2e9c56a410ded4ec7 /test/integration/framework
parentf52074eed3849ae7c7ebae3c3a118cd4ee094b32 (diff)
parent25792e39cf2218f1c9bae74217e4f91682e14837 (diff)
merged from lp:~donkult/apt/sid
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/framework b/test/integration/framework
index 2d6ada117..da85d2332 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -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;"