mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-06 05:11:14 +00:00
d15549aee0
* tests/libvirtd-pool: New file. Exercise the new unix_sock_dir option * tests/libvirtd-fail: New file. * tests/Makefile.am (test_scripts): Add libvirtd-fail and libvirtd-pool.
22 lines
436 B
Bash
Executable File
22 lines
436 B
Bash
Executable File
#!/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
|