diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-09-23 13:44:46 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-09-23 13:44:46 -0700 |
| commit | ffb03876084218ce73363dbd45482b4a39582897 (patch) | |
| tree | d7305b37aa0e76b1f4e7c26b6cd5264ee6243f8d /t/helper/test-run-command.c | |
| parent | Merge branch 'en/tests-cleanup-leftover-untracked' (diff) | |
| parent | test-tool run-command: fix flip-flop init pattern (diff) | |
| download | git-ffb03876084218ce73363dbd45482b4a39582897.tar.gz git-ffb03876084218ce73363dbd45482b4a39582897.zip | |
Merge branch 'ab/test-tool-run-command-cleanup'
Code clean-up.
* ab/test-tool-run-command-cleanup:
test-tool run-command: fix flip-flop init pattern
Diffstat (limited to 't/helper/test-run-command.c')
| -rw-r--r-- | t/helper/test-run-command.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/t/helper/test-run-command.c b/t/helper/test-run-command.c index 7ae03dc712..14c57365e7 100644 --- a/t/helper/test-run-command.c +++ b/t/helper/test-run-command.c @@ -61,7 +61,7 @@ struct testsuite { int quiet, immediate, verbose, verbose_log, trace, write_junit_xml; }; #define TESTSUITE_INIT \ - { STRING_LIST_INIT_DUP, STRING_LIST_INIT_DUP, -1, 0, 0, 0, 0, 0, 0 } + { STRING_LIST_INIT_DUP, STRING_LIST_INIT_DUP, 0, 0, 0, 0, 0, 0, 0 } static int next_test(struct child_process *cp, struct strbuf *err, void *cb, void **task_cb) @@ -142,9 +142,6 @@ static int testsuite(int argc, const char **argv) OPT_END() }; - memset(&suite, 0, sizeof(suite)); - suite.tests.strdup_strings = suite.failed.strdup_strings = 1; - argc = parse_options(argc, argv, NULL, options, testsuite_usage, PARSE_OPT_STOP_AT_NON_OPTION); |
