Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3c017a5

Browse files
committed
Take PROVE_FLAGS from the command line but not the environment
This reverts commit56b6ef8 and insteadmakes vcregress.pl parse out PROVE_FLAGS from a command line argumentwhen doing a TAP test, thus making it consistent with the makefiletreatment.Discussion:https://postgr.es/m/c26a7416-2fb9-34ab-7991-618c922f896e%402ndquadrant.comBackpatch to 9.4 like previous patch.
1 parentfd84995 commit3c017a5

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

‎src/Makefile.global.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ PROVE = @PROVE@
336336
# extra perl modules in their own directory.
337337
PG_PROVE_FLAGS = -I$(top_srcdir)/src/test/perl/ -I$(srcdir)
338338
# User-supplied prove flags such as --verbose can be provided in PROVE_FLAGS.
339-
339+
PROVE_FLAGS =
340340

341341
# prepend to path if already set, else just set it
342342
defineadd_to_path

‎src/tools/msvc/vcregress.pl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,18 @@ sub tap_check
177177
die"Tap tests not enabled in configuration"
178178
unless$config->{tap_tests};
179179

180+
my@flags;
181+
foreachmy$arg (0 ..scalar(@_))
182+
{
183+
nextunless$_[$arg] =~/^PROVE_FLAGS=(.*)/;
184+
@flags =split(/\s+/,$1);
185+
splice(@_,$arg,1);
186+
last;
187+
}
188+
180189
my$dir =shift;
181190
chdir$dir;
182191

183-
my@flags;
184-
@flags =split(/\s+/,$ENV{PROVE_FLAGS})ifexists$ENV{PROVE_FLAGS};
185-
186192
my@args = ("prove",@flags,"t/*.pl");
187193

188194
# adjust the environment for just this test

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp