summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/include.rc12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 7f4b377f644..26f3ee73789 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -172,7 +172,11 @@ function _EXPECT_NOT()
shift;
a=$("$@" | tail -1)
- test_expect_not_footer "$e" "$a";
+ if [ "x$e" = "x" ] ; then
+ test_expect_not_footer "x$e" "x$a";
+ else
+ test_expect_not_footer "$e" "$a";
+ fi
}
function _EXPECT_KEYWORD()
@@ -237,7 +241,11 @@ function _EXPECT_WITHIN()
sleep 1;
done
- test_expect_footer "$e" "$a";
+ if [ "x$e" = "x" ] ; then
+ test_expect_footer "x$e" "x$a";
+ else
+ test_expect_footer "$e" "$a";
+ fi
}