Merge pull request #3881 from pks-t/pks/fix-clar-suite-prefix-computation

clar: fix parsing of test suite prefixes
This commit is contained in:
Carlos Martín Nieto 2016-08-05 18:24:28 +02:00 committed by GitHub
commit c550c92228

View File

@ -340,6 +340,12 @@ clar_parse_args(int argc, char **argv)
if (strncmp(argument, _clar_suites[j].name, cmplen) == 0) {
int exact = (arglen >= suitelen);
/* Do we have a real suite prefix separated by a
* trailing '::' or just a matching substring? */
if (arglen > suitelen && (argument[suitelen] != ':'
|| argument[suitelen + 1] != ':'))
continue;
++found;
if (!exact)