Skip to content

Commit 0f39b70

Browse files
committed
Fix [install]check in interfaces/libpq/Makefile
The common recipe when TAP tests are disabled doesn't work, because the libpq-specific recipe wants to define the PATH environment variable, so the starting '@' is misinterpreted as part of the command instead of silencing said command. Fix by setting the environment variable in a way that doesn't interfere with the recipe. Reported-by: Justin Pryzby <pryzby@telsasoft.com> Discussion: https://postgr.es/m/20220720172321.GL12702@telsasoft.com
1 parent 83011ce commit 0f39b70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/interfaces/libpq/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,13 @@ install: all installdirs install-lib
143143
test-build:
144144
$(MAKE) -C test all
145145

146+
check installcheck: export PATH := $(CURDIR)/test:$(PATH)
147+
146148
check: test-build all
147-
PATH="$(CURDIR)/test:$$PATH" && $(prove_check)
149+
$(prove_check)
148150

149151
installcheck: test-build all
150-
PATH="$(CURDIR)/test:$$PATH" && $(prove_installcheck)
152+
$(prove_installcheck)
151153

152154
installdirs: installdirs-lib
153155
$(MKDIR_P) '$(DESTDIR)$(includedir)' '$(DESTDIR)$(includedir_internal)' '$(DESTDIR)$(datadir)'

0 commit comments

Comments
 (0)