Index: /trunk/psLib/test/dataManip/tst_psMatrixVectorArithmetic02.c
===================================================================
--- /trunk/psLib/test/dataManip/tst_psMatrixVectorArithmetic02.c	(revision 2056)
+++ /trunk/psLib/test/dataManip/tst_psMatrixVectorArithmetic02.c	(revision 2057)
@@ -10,6 +10,6 @@
  *  @author  Ross Harman, MHPCC
  *
- *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
- *  @date  $Date: 2004-08-27 23:31:29 $
+ *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
+ *  @date  $Date: 2004-10-12 20:50:40 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -81,9 +81,13 @@
 
 
-#define CHECK_MEMORY                                                                                         \
-psMemCheckLeaks(0, NULL, stdout);                                                                            \
-int nBad = psMemCheckCorruption(0);                                                                          \
-if(nBad) {                                                                                                   \
-    printf("ERROR: Found %d bad memory blocks\n", nBad);                                                     \
+#define CHECK_MEMORY \
+if( psMemCheckLeaks(0, NULL, stdout) != 0 ) {  \
+    psError(__func__,"Memory leaks detected."); \
+    return 50; \
+} \
+int nBad = psMemCheckCorruption(0); \
+if(nBad) { \
+    psError(__func__,"ERROR: Found %d bad memory blocks\n", nBad); \
+    return 51; \
 }
 
