mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Test for creating a domain with too little memory.
This commit is contained in:
1 parent
574b65be2f
commit
cf01e4ff3b
2 files changed
+29
-2
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) International Business Machines Corp., 2005
|
||||
# Author: Dan Smith <danms@us.ibm.com>
|
||||
|
||||
from XmTestLib import *
|
||||
|
||||
MEM = 16
|
||||
|
||||
domain = XmTestDomain(extraOpts={"memory":"%i" % MEM})
|
||||
|
||||
try:
|
||||
domain.start()
|
||||
except DomainError, e:
|
||||
FAIL("Unable to start a domain with %i MB" % MEM)
|
||||
|
||||
try:
|
||||
console = XmConsole(domain.getName())
|
||||
console.sendInput("input")
|
||||
console.runCmd("ls")
|
||||
except ConsoleError, e:
|
||||
if e.reason == RUNAWAY:
|
||||
FAIL("Bug #380: Starting a console with %i MB crashed the console daemon" % MEM)
|
||||
else:
|
||||
FAIL("Starting a console with %i MB failed: domain dies immediately!" % MEM)
|
||||
|
||||
domain.destroy()
|
||||
@@ -12,8 +12,8 @@ TESTS = 01_create_basic_pos.test \
|
||||
11_create_concurrent_pos.test \
|
||||
12_create_concurrent_stress_pos.test \
|
||||
13_create_multinic_pos.test \
|
||||
14_create_blockroot_pos.test
|
||||
|
||||
14_create_blockroot_pos.test \
|
||||
15_create_smallmem_pos.test
|
||||
|
||||
DISABLED_TESTS = 05_create_noroot_noram_neg.test
|
||||
|
||||
|
||||