summaryrefslogtreecommitdiff
path: root/tests/libvirtd-fail
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libvirtd-fail')
-rwxr-xr-xtests/libvirtd-fail9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/libvirtd-fail b/tests/libvirtd-fail
index 92b82c4b0b..eeb1ee68fc 100755
--- a/tests/libvirtd-fail
+++ b/tests/libvirtd-fail
@@ -12,10 +12,7 @@ test -z "$abs_top_srcdir" && abs_top_srcdir=$(pwd)/..
fail=0
-libvirtd --config=no-such-file > log 2>&1 && fail=1
-cat <<\EOF > exp
-Failed to open file 'no-such-file': No such file or directory
-EOF
+libvirtd --config=no-such-conf --timeout=5 2> log
+RET=$?
-compare exp log || fail=1
-exit $fail
+test "$RET" != "0" && exit 0 || exit 1