close(1); /* close stdout */
dup(pipefd[1]); /* set stdout to the write end of the pipe */
execlp(run->name, run->name, NULL);
close(1); /* close stdout */
dup(pipefd[1]); /* set stdout to the write end of the pipe */
execlp(run->name, run->name, NULL);
/* if the "not" match fails, the test passed */
pass = match[1].rm_so == -1;
/* if the "not" match fails, the test passed */
pass = match[1].rm_so == -1;
fprintf(stderr, "expected test %d, got %d\n", run->ran+1, test);
}
fprintf(stderr, "expected test %d, got %d\n", run->ran+1, test);
}
- printf("ran: %d/%d, pass: %d, fail: %d, %.2f%% ok\n",
+ printf("ran: %d/%d, pass: %d, fail: %d, skip: %d",
total.ran, total.plan, total.pass, total.fail,
total.ran, total.plan, total.pass, total.fail,