utils/test-runner.cc
changeset 5297 a7f197a2410b
parent 4772 7b6ae6bf0055
child 5324 0ba73cdd2a43
--- a/utils/test-runner.cc	Tue Sep 29 12:34:07 2009 -0700
+++ b/utils/test-runner.cc	Tue Sep 29 19:58:29 2009 -0700
@@ -230,6 +230,7 @@
   // but we'll do it if asked.
   //
   bool result = false;
+  bool suiteRan = false;
 
   for (uint32_t i = 0; i < TestRunner::GetNTestSuites (); ++i)
     {
@@ -240,9 +241,19 @@
           testSuite->SetStream (pofs);
           testSuite->SetVerbose (doVerbose);
           result |= testSuite->Run ();
+          suiteRan = true;
         }
     }
 
   ofs.close();
+
+  //
+  // If we couldn't figure out how to run at least one test, then return an error
+  //
+  if (suiteRan == false)
+    {
+      return true;
+    }
+
   return result;
 }