mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
* tests/vcpupin: Add a test for the 2008-04-04 virsh.c bugfix.
This commit is contained in:
1 parent
67b17df9d2
commit
7c61b48202
2 files changed
+14
-1
No files matched your search
+10
-1
@@ -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
|
||||
Reference in new issue
Block a user