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

version» Context lines:

pike.git/lib/modules/Tools.pmod/Standalone.pmod/test_pike.pike:826:       while(loop--)    {    successes=errors=0;    if (forked) {    foreach(testsuites, string testsuite) {    int failure;    array(int) subres =    low_run_script (forked + ({ testsuite }), ([]));    if (!subres) { +  log_status (""); +  log_msg("Failed to spawn testsuite %O.\n", testsuite);    errors++;    failure = 1;    } else {    [int sub_succeeded, int sub_failed, int sub_skipped] = subres;    if (!(sub_succeeded || sub_failed || sub_skipped))    continue; -  if (verbose) { +  if (verbose || sub_failed) {    log_status ("");    log_msg("Subresult: %d tests, %d failed, %d skipped\n",    sub_succeeded + sub_failed, sub_failed, sub_skipped);    }    successes += sub_succeeded;    errors += sub_failed;    skipped += sub_skipped;    if (sub_failed) failure = 1;    }    if ((verbose > 1) || (fail && errors))
pike.git/lib/modules/Tools.pmod/Standalone.pmod/test_pike.pike:1254:    watchdog_show_last_test();    log_msg(fname + " failed to return proper results.\n");    print_code(source);    log_msg_result("o->a(): %O\n",a);    errors++;    }    else {    successes += a[0];    errors += a[1];    if (sizeof (a) >= 3) skipped += a[2]; -  if (verbose>1) +  if ((verbose>1) || a[1])    if(a[1])    log_msg("%d/%d tests failed%s.\n",    a[1], a[0]+a[1],    sizeof (a) >= 3 ? " (skipped " + a[2] + ")" : "");    else    log_msg("Did %d tests in %s%s.\n", a[0], fname,    sizeof (a) >= 3 ? " (skipped " + a[2] + ")" : "");    }    break;