summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-03-17 00:53:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-03-17 00:53:09 (GMT)
commit38bbb9e990e7290c286ad0a8ea250ab53470a374 (patch)
tree9643b7ecc0a51c01ade32df122f5d7e1d70d3aff /t
parent7431379a9c5ed4006603114b1991c6c6e98d5dca (diff)
parent99d60545f87445d7050999b826fc4cd49e69376c (diff)
downloadgit-38bbb9e990e7290c286ad0a8ea250ab53470a374.zip
git-38bbb9e990e7290c286ad0a8ea250ab53470a374.tar.gz
git-38bbb9e990e7290c286ad0a8ea250ab53470a374.tar.bz2
Merge branch 'ab/string-list-count-in-size-t'
Count string_list items in size_t, not "unsigned int". * ab/string-list-count-in-size-t: string-list API: change "nr" and "alloc" to "size_t" gettext API users: don't explicitly cast ngettext()'s "n"
Diffstat (limited to 't')
-rw-r--r--t/helper/test-run-command.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/helper/test-run-command.c b/t/helper/test-run-command.c
index 8f370cd..3da8525 100644
--- a/t/helper/test-run-command.c
+++ b/t/helper/test-run-command.c
@@ -180,15 +180,16 @@ static int testsuite(int argc, const char **argv)
if (max_jobs > suite.tests.nr)
max_jobs = suite.tests.nr;
- fprintf(stderr, "Running %d tests (%d at a time)\n",
- suite.tests.nr, max_jobs);
+ fprintf(stderr, "Running %"PRIuMAX" tests (%d at a time)\n",
+ (uintmax_t)suite.tests.nr, max_jobs);
ret = run_processes_parallel(max_jobs, next_test, test_failed,
test_finished, &suite);
if (suite.failed.nr > 0) {
ret = 1;
- fprintf(stderr, "%d tests failed:\n\n", suite.failed.nr);
+ fprintf(stderr, "%"PRIuMAX" tests failed:\n\n",
+ (uintmax_t)suite.failed.nr);
for (i = 0; i < suite.failed.nr; i++)
fprintf(stderr, "\t%s\n", suite.failed.items[i].string);
}