aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2017-11-22 20:18:15 -0800
committerNoah Misch <noah@leadboat.com>2017-11-22 20:18:52 -0800
commit5c48d68de575645a668f76f9ec4afc082fd3d73b (patch)
tree65a90d1d8cb50c9b81fe3ca2404c36d038a0acb7 /src
parent5b2a877070913ee4e7088f3593804595309b3938 (diff)
downloadpostgresql-5c48d68de575645a668f76f9ec4afc082fd3d73b.tar.gz
postgresql-5c48d68de575645a668f76f9ec4afc082fd3d73b.zip
Build src/test/isolation during "make" and "make install".
This hack closes a race condition in "make -j check-world" and "make -j installcheck-world". Back-patch to v10, before which these parallel invocations had worse problems. Discussion: https://postgr.es/m/20171106080752.GA1298146@rfd.leadboat.com
Diffstat (limited to 'src')
-rw-r--r--src/Makefile1
-rw-r--r--src/test/isolation/Makefile7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 380da92c75e..febbcede7d0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -28,6 +28,7 @@ SUBDIRS = \
pl \
makefiles \
test/regress \
+ test/isolation \
test/perl
# There are too many interdependencies between the subdirectories, so
diff --git a/src/test/isolation/Makefile b/src/test/isolation/Makefile
index 8eb4969e9b8..efbdc40e1d3 100644
--- a/src/test/isolation/Makefile
+++ b/src/test/isolation/Makefile
@@ -15,6 +15,13 @@ OBJS = specparse.o isolationtester.o $(WIN32RES)
all: isolationtester$(X) pg_isolation_regress$(X)
+# Though we don't install these binaries, build them during installation
+# (including temp-install). Otherwise, "make -j check-world" and "make -j
+# installcheck-world" would spawn multiple, concurrent builds in this
+# directory. Later builds would overwrite files while earlier builds are
+# reading them, causing occasional failures.
+install: | all
+
submake-regress:
$(MAKE) -C $(top_builddir)/src/test/regress pg_regress.o