2009-03-02 20:01:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Ensure that libvirt fails when given nonexistent --config=FILE
|
|
|
|
|
2009-09-23 07:32:10 +00: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-02 20:01:05 +00:00
|
|
|
if test "$VERBOSE" = yes; then
|
|
|
|
set -x
|
2009-09-23 07:32:10 +00:00
|
|
|
$abs_top_builddir/daemon/libvirtd --version
|
2009-03-02 20:01:05 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
. "$srcdir/test-lib.sh"
|
|
|
|
|
|
|
|
fail=0
|
|
|
|
|
2009-09-23 07:32:10 +00:00
|
|
|
$abs_top_builddir/daemon/libvirtd --config=no-such-conf --timeout=5 2> log
|
2009-03-04 13:04:06 +00:00
|
|
|
RET=$?
|
2009-03-02 20:01:05 +00:00
|
|
|
|
2009-03-04 13:04:06 +00:00
|
|
|
test "$RET" != "0" && exit 0 || exit 1
|