Test for creating a domain with too little memory.

This commit is contained in:
dan@guaranine.beaverton.ibm.com committed 2005-11-16 20:33:12 +01:00
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()
+2 -2
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.