only run one test
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 24 Nov 2011 03:22:32 +0000 (03:22 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 24 Nov 2011 03:22:32 +0000 (03:22 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65554 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test.c

index 11b40ee..0baf66a 100644 (file)
@@ -510,8 +510,13 @@ add_tests:
      {
         size_t alen = strlen(autorun);
         EINA_LIST_FOREACH(tests, l, t)
-          if ((t->name) && (t->cb) && (!strncasecmp(t->name, autorun, alen)))
-            t->cb(NULL, NULL, NULL);
+          {
+             if ((t->name) && (t->cb) && (!strncasecmp(t->name, autorun, alen)))
+               {
+                  t->cb(NULL, NULL, NULL);
+                  break;
+               }
+          }
 
      }