summaryrefslogtreecommitdiff
path: root/src/test/isolation/isolationtester.c
diff options
context:
space:
mode:
authorTom Lane2013-10-22 23:40:26 +0000
committerTom Lane2013-10-22 23:40:26 +0000
commit2c66f9924c1162bfba27c77004ccf42fb6ea188d (patch)
tree920c20776ef6d13d7a5d3a836202d897abcaf428 /src/test/isolation/isolationtester.c
parent09a89cb5fc29b47c26d151e82293fd3bef592b7b (diff)
Replace pg_asprintf() with psprintf().
This eliminates an awkward coding pattern that's also unnecessarily inconsistent with backend coding. psprintf() is now the thing to use everywhere.
Diffstat (limited to 'src/test/isolation/isolationtester.c')
-rw-r--r--src/test/isolation/isolationtester.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c
index 7a3572f0c17..9679e6a6e6b 100644
--- a/src/test/isolation/isolationtester.c
+++ b/src/test/isolation/isolationtester.c
@@ -466,7 +466,7 @@ report_two_error_messages(Step * step1, Step * step2)
{
char *prefix;
- pg_asprintf(&prefix, "%s %s", step1->name, step2->name);
+ prefix = psprintf("%s %s", step1->name, step2->name);
if (step1->errormsg)
{
@@ -794,7 +794,7 @@ try_complete_step(Step * step, int flags)
PG_DIAG_MESSAGE_PRIMARY);
if (sev && msg)
- pg_asprintf(&step->errormsg, "%s: %s", sev, msg);
+ step->errormsg = psprintf("%s: %s", sev, msg);
else
step->errormsg = pg_strdup(PQresultErrorMessage(res));
}