libvirtd-fail 360 字节
Newer Older
J
Jim Meyering 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh
# Ensure that libvirt fails when given nonexistent --config=FILE

if test "$VERBOSE" = yes; then
  set -x
  libvirtd --version
fi

test -z "$srcdir" && srcdir=$(pwd)
test -z "$abs_top_srcdir" && abs_top_srcdir=$(pwd)/..
. "$srcdir/test-lib.sh"

fail=0

15 16
libvirtd --config=no-such-conf --timeout=5 2> log
RET=$?
J
Jim Meyering 已提交
17

18
test "$RET" != "0" && exit 0 || exit 1