match partial test words in elm_test
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 23 Nov 2011 23:14:12 +0000 (23:14 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 23 Nov 2011 23:14:12 +0000 (23:14 +0000)
SVN revision: 65544

src/bin/test.c

index 1db1208..f112e26 100644 (file)
@@ -506,8 +506,9 @@ add_tests:
 
    if (autorun)
      {
+        size_t alen = strlen(autorun);
         EINA_LIST_FOREACH(tests, l, t)
-          if ((t->name) && (t->cb) && (!strcasecmp(t->name, autorun)))
+          if ((t->name) && (t->cb) && (!strncasecmp(t->name, autorun, alen)))
             t->cb(NULL, NULL, NULL);
 
      }