Improve tesing of command line apps
[awesomized/libmemcached] / libtest / test.cc
index 432d84176118d1aafc0da8d7e24393429b655e07..80cb8ddd64f30fee70ad949c335ebba24e1ae7bc 100644 (file)
@@ -150,7 +150,10 @@ int main(int argc, char *argv[])
   }
   else if (getenv("TEST_COLLECTION"))
   {
-    collection_to_run= getenv("TEST_COLLECTION");
+    if (strlen(getenv("TEST_COLLECTION")))
+    {
+      collection_to_run= getenv("TEST_COLLECTION");
+    }
   }
 
   if (collection_to_run)