pike.git / lib / modules / Tools.pmod / Standalone.pmod / benchmark.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Standalone.pmod/benchmark.pike:70:    array(string) to_run_names = rows (tests, to_run)->name;       foreach (test_globs, string test_glob)    foreach (to_run; int idx; string id)    if (id) {    if (!to_run_names[idx]) {    write("No name on test %O!\n", id);    ecode++;    // Don't report the error multiple times.    to_run[idx] = 0; -  } else if (glob (test_glob, to_run_names[idx])) { +  } else if (glob (test_glob, to_run_names[idx]) || +  glob (test_glob, id)) {    ecode += Tools.Shoot.ExecTest(id,tests[id])    ->run(seconds_per_test,maximum_runs);    // Don't run test more than once if it matches several globs.    to_run[idx] = 0;    }    }    return ecode;   }