aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-08-03 05:12:38 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-08-03 05:12:38 +0000
commit3c93218aeb670054df88cc9c9236b61de006b515 (patch)
treefcb9a591bdec16dbd42fa61dc264c4ff7a682735
parent951130475221562b44b0da575fac8470adb5b555 (diff)
downloadpostgresql-3c93218aeb670054df88cc9c9236b61de006b515.tar.gz
postgresql-3c93218aeb670054df88cc9c9236b61de006b515.zip
Fix copy-and-pasteo that's causing pg_regress to lie about which file it can't
read when the --temp-config argument is bad. Noted while wondering why buildfarm member dungbeetle is failing ... this isn't why, but it is why the error report isn't very helpful ...
-rw-r--r--src/test/regress/pg_regress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index feaaf8f3202..7590201583a 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.45 2008/05/17 20:02:01 tgl Exp $
+ * $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.46 2008/08/03 05:12:38 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2079,7 +2079,7 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
extra_conf = fopen(temp_config, "r");
if (extra_conf == NULL)
{
- fprintf(stderr, _("\n%s: could not open %s to read extra config:\nError was %s\n"), progname, buf, strerror(errno));
+ fprintf(stderr, _("\n%s: could not open %s to read extra config:\nError was %s\n"), progname, temp_config, strerror(errno));
exit_nicely(2);
}
while (fgets(line_buf, sizeof(line_buf), extra_conf) != NULL)