Author: gnichols
Date: 2010-03-10 17:36:12 +0000 (Wed, 10 Mar 2010)
New Revision: 446
Modified:
trunk/tests/memory/memory.py
Log:
567378 - Memory test of v7.1.1-7 test kits fail on RH5 Update 4 x86
Modified: trunk/tests/memory/memory.py
===================================================================
--- trunk/tests/memory/memory.py 2010-03-10 14:17:37 UTC (rev 445)
+++ trunk/tests/memory/memory.py 2010-03-10 17:36:12 UTC (rev 446)
@@ -199,12 +199,12 @@
if line and len(line) > 1:
print "process %u pid %u: %s" % (i,
process[i].getPID(), line)
sys.stdout.flush()
- if process[i].poll() == -1:
+ returnValue = process[i].poll()
+ if returnValue is None or returnValue is -1:
waiting = True
else:
- returnValue = process[i].poll()
- if returnValue != 0:
- print "Error: process %u pid %u retuned %u" % (i,
process[i].getPID(), returnValue)
+ if returnValue > 0:
+ print "Error: process %u pid %u returned %u" % (i,
process[i].getPID(), returnValue)
passed = False
print "process %u pid %u returned success" % (i,
process[i].getPID())
process[i] = None
Show replies by date