summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:41 (GMT)
commit940622bc8b33e085f62c5bcfe6183fe6f57888e2 (patch)
tree317b4e1134c92f488f28280d7441db43fb9e3454 /t
parent68e80da479ff940aea3f34447336e523b448f34c (diff)
parentbc57b9c0cc5a123365a922fa1831177e3fd607ed (diff)
downloadgit-940622bc8b33e085f62c5bcfe6183fe6f57888e2.zip
git-940622bc8b33e085f62c5bcfe6183fe6f57888e2.tar.gz
git-940622bc8b33e085f62c5bcfe6183fe6f57888e2.tar.bz2
Merge branch 'rs/use-strbuf-addstr'
* rs/use-strbuf-addstr: use strbuf_addstr() instead of strbuf_addf() with "%s" use strbuf_addstr() for adding constant strings to a strbuf
Diffstat (limited to 't')
-rw-r--r--t/helper/test-run-command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/helper/test-run-command.c b/t/helper/test-run-command.c
index c71ea4f..d24d157 100644
--- a/t/helper/test-run-command.c
+++ b/t/helper/test-run-command.c
@@ -26,7 +26,7 @@ static int parallel_next(struct child_process *cp,
return 0;
argv_array_pushv(&cp->args, d->argv);
- strbuf_addf(err, "preloaded output of a child\n");
+ strbuf_addstr(err, "preloaded output of a child\n");
number_callbacks++;
return 1;
}
@@ -36,7 +36,7 @@ static int no_job(struct child_process *cp,
void *cb,
void **task_cb)
{
- strbuf_addf(err, "no further jobs available\n");
+ strbuf_addstr(err, "no further jobs available\n");
return 0;
}
@@ -45,7 +45,7 @@ static int task_finished(int result,
void *pp_cb,
void *pp_task_cb)
{
- strbuf_addf(err, "asking for a quick stop\n");
+ strbuf_addstr(err, "asking for a quick stop\n");
return 1;
}