File: libvirtd-fail

package info (click to toggle)
libvirt 3.0.0-4%2Bdeb9u4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 221,536 kB
  • sloc: ansic: 536,027; xml: 118,597; sh: 9,608; makefile: 5,399; perl: 3,888; python: 3,838; ml: 468; sed: 16
file content (16 lines) | stat: -rwxr-xr-x 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Ensure that libvirt fails when given nonexistent --config=FILE

. "$(dirname $0)/test-lib.sh"

if test "$VERBOSE" = yes; then
  set -x
  $abs_top_builddir/daemon/libvirtd --version
fi

fail=0

$abs_top_builddir/daemon/libvirtd --config=no-such-conf --timeout=5 2> log
RET=$?

test "$RET" != "0" && exit 0 || exit 1