You need to sign in or sign up before continuing.
libvirtd-fail 436 字节
Newer Older
J
Jim Meyering 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/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

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

compare exp log || fail=1
exit $fail