summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-23 20:44:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-23 20:44:46 (GMT)
commitffb03876084218ce73363dbd45482b4a39582897 (patch)
treed7305b37aa0e76b1f4e7c26b6cd5264ee6243f8d
parentb83e1310297c7440d962bed10a198f4ccf2c7e0d (diff)
parentc90be786da950a2705152dc49b9fb771f1d0a86c (diff)
downloadgit-ffb03876084218ce73363dbd45482b4a39582897.zip
git-ffb03876084218ce73363dbd45482b4a39582897.tar.gz
git-ffb03876084218ce73363dbd45482b4a39582897.tar.bz2
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
-rw-r--r--t/helper/test-run-command.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/helper/test-run-command.c b/t/helper/test-run-command.c
index 7ae03dc..14c5736 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);