ia64/xen-unstable

view tools/xm-test/tests/create/04_create_conflictname_neg.py @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 7869f58ff551
children
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Author: Li Ge <lge@us.ibm.com>
6 # Test Description:
7 # Negative Test:
8 # Test for creating domains with same name. Verify fail.
10 import sys
11 import re
13 from XmTestLib import *
15 # Create a domain with name "default" (default XmTestDomain, with our ramdisk)
16 domain1 = XmTestDomain("default")
18 #start it
19 try:
20 domain1.start(noConsole=True)
21 except DomainError, e:
22 if verbose:
23 print "Failed to create test domain1 because:"
24 print e.extra
25 FAIL(str(e))
27 # Create second domain with same name "default"
28 domain2 = XmTestDomain("default")
30 #start it
31 eyecatcher = "Pass"
32 try:
33 domain2.start(noConsole=True)
34 except DomainError, e:
35 eyecatcher = "Fail"
36 # Stop the domain1 (nice shutdown)
37 domain1.stop()
39 if eyecatcher != "Fail":
40 domain2.stop()
41 FAIL("xm create let me create a duplicate-named domain!")