[mapserver-commits] r10097 - trunk/msautotest/pymod

svn at osgeo.org svn at osgeo.org
Mon Apr 12 11:38:47 EDT 2010


Author: warmerdam
Date: 2010-04-12 11:38:45 -0400 (Mon, 12 Apr 2010)
New Revision: 10097

Modified:
   trunk/msautotest/pymod/mstestlib.py
Log:
produce a more strident message about tests that produce no result as they may be crashes (#2157)

Modified: trunk/msautotest/pymod/mstestlib.py
===================================================================
--- trunk/msautotest/pymod/mstestlib.py	2010-04-11 03:40:46 UTC (rev 10096)
+++ trunk/msautotest/pymod/mstestlib.py	2010-04-12 15:38:45 UTC (rev 10097)
@@ -213,6 +213,7 @@
     fail_count = 0
     succeed_count = 0
     init_count = 0
+    noresult_count = 0
     keep_pass = 0
     valgrind = 0 
     shp2img = 'shp2img' 
@@ -295,6 +296,7 @@
                 command = command.strip()
                 command = 'valgrind --tool=memcheck --leak-check=full %s 2>result/%s.txt'%(command, out_file+".vgrind.txt")
             os.system( command )
+
             if demime:
                 demime_file( 'result/'+out_file )
             if deversion:
@@ -325,6 +327,7 @@
                 print '*    results dont match, TEST FAILED.'
             elif cmp == 'noresult':
                 fail_count = fail_count + 1
+                noresult_count += 1
                 print '*    no result file generated, TEST FAILED.'
             elif cmp == 'noexpected':
                 print '     no expected file exists, accepting result as expected.'
@@ -340,3 +343,6 @@
     print '%d tests succeeded' % succeed_count
     print '%d tests failed' %fail_count
     print '%d test results initialized' % init_count
+
+    if noresult_count > 0:
+        print '%d of failed tests produced *no* result! Serious Failure!' % noresult_count



More information about the mapserver-commits mailing list