提交 7c61b482 编写于 作者: J Jim Meyering

* tests/vcpupin: Add a test for the 2008-04-04 virsh.c bugfix.

上级 67b17df9
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
......
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册