2009-03-03 04:01:05 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Ensure that libvirt fails when given nonexistent --config=FILE
|
|
|
|
|
2016-04-22 01:50:18 +08:00
|
|
|
. "$(dirname $0)/test-lib.sh"
|
2009-09-23 15:32:10 +08:00
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|