Index: trunk/psLib/test/psTest.c
===================================================================
--- trunk/psLib/test/psTest.c	(revision 586)
+++ trunk/psLib/test/psTest.c	(revision 723)
@@ -52,4 +52,10 @@
     wait(&childReturn);
 
+    childReturn &= 0x7f;
+
+    if (childReturn != expectedReturn) {
+        fprintf(fp,"Return value mismatch: expected %d, got %d",expectedReturn,childReturn);
+    }
+
     p_printFooter(fp,testPointFile,packageName,testPointName, (childReturn==expectedReturn));
 
