src/tools/msvc: Respect REGRESS_OPTS in plcheck.
authorNoah Misch <noah@leadboat.com>
Mon, 11 Nov 2024 18:55:18 +0000 (10:55 -0800)
committerNoah Misch <noah@leadboat.com>
Mon, 11 Nov 2024 18:56:09 +0000 (10:56 -0800)
v16 commit 8fe3e697a1a83a722b107c7cb9c31084e1f4d077 used REGRESS_OPTS in
a way needing this.  That broke "vcregress plcheck".  Back-patch
v16..v12; newer versions don't have this build system.

src/tools/msvc/vcregress.pl

index c269ad28c9fab9a995a0ba8351ab982375fba1e7..44f5b27900e8d6a0daf0622af65d9c64b1715b43 100644 (file)
@@ -456,13 +456,15 @@ sub plcheck
        # Move on if no tests are listed.
        next if (scalar @tests == 0);
 
+       my @opts = fetchRegressOpts();
+
        print
          "============================================================\n";
        print "Checking $lang\n";
        my @args = (
            "$topdir/$Config/pg_regress/pg_regress",
            "--bindir=$topdir/$Config/psql",
-           "--dbname=pl_regression", @lang_args, @tests);
+           "--dbname=pl_regression", @lang_args, @opts, @tests);
        system(@args);
        my $status = $? >> 8;
        exit $status if $status;