Skip to content

Commit 196eeb6

Browse files
Fix handling of expecteddir in pg_regress
Commit c855872 introduced a new parameter to pg_regress to set the directory where to look for expected files, but accidentally only implemented it for when compiling pg_regress for ECPG tests. Fix by adding support for the parameter to the main regression test compilation of pg_regress as well. Backpatch to v16 where --expecteddir was introduced. Author: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com> Discussion: https://postgr.es/m/CAO6_Xqq5yKJHcJsq__LPcKwSY0XHRqVERNWGxx5ttNXXj7+W=A@mail.gmail.com Backpatch-through: 16
1 parent d802ff0 commit 196eeb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/regress/pg_regress_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ psql_start_test(const char *testname,
5454
outputdir, testname);
5555

5656
snprintf(expectfile, sizeof(expectfile), "%s/expected/%s.out",
57-
outputdir, testname);
57+
expecteddir, testname);
5858
if (!file_exists(expectfile))
5959
snprintf(expectfile, sizeof(expectfile), "%s/expected/%s.out",
6060
inputdir, testname);

0 commit comments

Comments
 (0)