aboutsummaryrefslogtreecommitdiff
path: root/test/unit/Makefile.am
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-09-08 13:17:43 +0200
committerGitHub <noreply@github.com>2021-09-08 13:17:43 +0200
commit7ea1338d8cd5a8b738c0fba69dbe8a9188ae3a95 (patch)
treeab9bbd76d67752e3ecd1b28411cb30c64a0effb3 /test/unit/Makefile.am
parent312e511cded7e29d23c5ff5ebf5f1be0bcdc44bb (diff)
parentce080251225d16e11e139a5ebe07cf608fe022b2 (diff)
downloadPROJ-7ea1338d8cd5a8b738c0fba69dbe8a9188ae3a95.tar.gz
PROJ-7ea1338d8cd5a8b738c0fba69dbe8a9188ae3a95.zip
Merge pull request #2845 from rouault/fix_2843
Fix database access across fork() when SQLite3 doesn't use pread[64]() (fixes #2843)
Diffstat (limited to 'test/unit/Makefile.am')
-rw-r--r--test/unit/Makefile.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/unit/Makefile.am b/test/unit/Makefile.am
index 1326332b..9ca3a723 100644
--- a/test/unit/Makefile.am
+++ b/test/unit/Makefile.am
@@ -4,7 +4,7 @@ EXTRA_DIST = CMakeLists.txt
noinst_HEADERS = gtest_include.h test_primitives.hpp
-AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/test @GTEST_CFLAGS@ @SQLITE3_CFLAGS@
+AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/test @GTEST_CFLAGS@ @SQLITE3_CFLAGS@ -DMUTEX_@MUTEX_SETTING@
AM_CXXFLAGS = @CXX_WFLAGS@ @NO_ZERO_AS_NULL_POINTER_CONSTANT_FLAG@
PROJ_LIB ?= ../../data/for_tests
@@ -20,6 +20,7 @@ noinst_PROGRAMS += test_network
noinst_PROGRAMS += test_defmodel
noinst_PROGRAMS += test_tinshift
noinst_PROGRAMS += test_misc
+noinst_PROGRAMS += test_fork
pj_phi2_test_SOURCES = pj_phi2_test.cpp main.cpp
pj_phi2_test_LDADD = ../../src/libproj.la @GTEST_LIBS@
@@ -95,7 +96,13 @@ test_misc_LDADD = ../../src/libproj.la @GTEST_LIBS@
test_misc-check: test_misc
PROJ_LIB=$(PROJ_LIB) ./test_misc
+test_fork_SOURCES = test_fork.c
+test_fork_LDADD = ../../src/libproj.la @THREAD_LIB@
+
+test_fork-check: test_fork
+ PROJ_LIB=$(PROJ_LIB) ./test_fork
+
check-local: pj_phi2_test-check proj_errno_string_test-check \
proj_angular_io_test-check proj_context_test-check test_cpp_api-check \
gie_self_tests-check test_network-check test_defmodel-check test_tinshift-check \
- test_misc-check
+ test_misc-check test_fork-check