tests: Use the new DO_TEST_CAPS_*() macros
[libvirt/ericb.git] / tests / virsh-int-overflow
blobe9eb03bfbb25e64cefcbf8ccf7bcf77ce845a3a4
1 #!/bin/sh
2 # Ensure that an invalid domain ID isn't interpreted as a valid one.
3 # Before, an ID of 2^32+2 would be treated just like an ID of 2.
5 . "$(dirname $0)/test-lib.sh"
7 if test "$VERBOSE" = yes; then
8 set -x
9 $abs_top_builddir/tools/virsh --version
12 echo "error: failed to get domain '4294967298'" > exp || fail=1
13 $abs_top_builddir/tools/virsh --quiet \
14 --connect test://$abs_top_srcdir/examples/xml/test/testnode.xml \
15 'domname 4294967298; quit' > /dev/null 2> err || fail=1
16 diff -u err exp || fail=1
18 exit $fail