Commit c550c922 by Carlos Martín Nieto Committed by GitHub

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

clar: fix parsing of test suite prefixes
parents cba60b9b f2cab0a6
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment