diff options
Diffstat (limited to 'test-run-command.c')
-rw-r--r-- | test-run-command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test-run-command.c b/test-run-command.c index 0612bfa7cd..89c7de2c60 100644 --- a/test-run-command.c +++ b/test-run-command.c @@ -15,9 +15,7 @@ int main(int argc, char **argv) { - struct child_process proc; - - memset(&proc, 0, sizeof(proc)); + struct child_process proc = CHILD_PROCESS_INIT; if (argc < 3) return 1; @@ -29,6 +27,8 @@ int main(int argc, char **argv) fprintf(stderr, "FAIL %s\n", argv[1]); return 1; } + if (!strcmp(argv[1], "run-command")) + exit(run_command(&proc)); fprintf(stderr, "check usage\n"); return 1; |