]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* tests/vcpupin: Add a test for the 2008-04-04 virsh.c bugfix.
authorJim Meyering <meyering@redhat.com>
Mon, 7 Apr 2008 12:12:34 +0000 (12:12 +0000)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Apr 2008 12:12:34 +0000 (12:12 +0000)
ChangeLog
tests/vcpupin

index 73702a53d705337b8155c5d13633af8d9cce54b1..6c37ac48a8a688aad9851dfb8d190ae2b1b0520a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Apr  7 14:36:56 CET 2008 Jim Meyering <meyering@redhat.com>
+
+       * tests/vcpupin: Add a test for the 2008-04-04 virsh.c bugfix.
+
 Mon Apr  7 12:53:01 CEST 2008 Daniel Veillard <veillard@redhat.com>
 
        * docs/bugs.html docs/libvir.html: update the page bugzilla URIs
index b56c7f266a285d59e7cdf32525ef818f294363ad..7b5f86cf967afc00060515f3a5b532a361f5c113 100755 (executable)
@@ -24,14 +24,23 @@ fi
 . $srcdir/test-lib.sh
 
 fail=0
+
+# Invalid syntax.
 virsh --connect test:///default vcpupin test a 0,1 > out 2>&1
 test $? = 1 || fail=1
-
 cat <<\EOF > exp || fail=1
 error: vcpupin: Invalid or missing vCPU number.
 
 EOF
+compare out exp || fail=1
 
+# An out-of-range vCPU number deserves a diagnostic, too.
+virsh --connect test:///default vcpupin test 100 0,1 > out 2>&1
+test $? = 1 || fail=1
+cat <<\EOF > exp || fail=1
+error: vcpupin: Invalid vCPU number.
+
+EOF
 compare out exp || fail=1
 
 (exit $fail); exit $fail