2009-03-03 04:01:05 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Ensure that libvirt fails when given nonexistent --config=FILE
|
|
|
|
|
2009-09-23 15:32:10 +08:00
|
|
|
test -z "$srcdir" && srcdir=$(pwd)
|
|
|
|
test -z "$abs_top_srcdir" && abs_top_srcdir=$(pwd)/..
|
|
|
|
test -z "$abs_top_builddir" && abs_top_builddir=$(pwd)/..
|
|
|
|
|
2009-03-03 04:01:05 +08:00
|
|
|
if test "$VERBOSE" = yes; then
|
|
|
|
set -x
|
2009-09-23 15:32:10 +08:00
|
|
|
$abs_top_builddir/daemon/libvirtd --version
|
2009-03-03 04:01:05 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
. "$srcdir/test-lib.sh"
|
|
|
|
|
|
|
|
fail=0
|
|
|
|
|
2009-09-23 15:32:10 +08:00
|
|
|
$abs_top_builddir/daemon/libvirtd --config=no-such-conf --timeout=5 2> log
|
2009-03-04 21:04:06 +08:00
|
|
|
RET=$?
|
2009-03-03 04:01:05 +08:00
|
|
|
|
2009-03-04 21:04:06 +08:00
|
|
|
test "$RET" != "0" && exit 0 || exit 1
|