aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Dedrick <ddedrick@lexmark.com>2016-11-16 09:31:24 -0500
committerDan Dedrick <ddedrick@lexmark.com>2016-11-16 09:35:13 -0500
commitaceeb3c7145132d3b0eb839a043798b41a75b8c6 (patch)
treeb3691a35ac27ebcd2b0f3421e3640832396f7f63 /tests
parent10ac49f8aab2816a3b964db12ab284ad8a9c08a1 (diff)
downloadbindfs-aceeb3c7145132d3b0eb839a043798b41a75b8c6.tar.gz
tests: fix building out of place
The path to the source files should be top_srcdir not top_builddir. When building in place these are both the same so this doesn't fail but is technically wrong. This change will allow both cases to work. To demonstrace how this was broken before and to ensure it is fixed now you can do the following: ./autogen.sh && mkdir -p build && cd build && ../configure && make Running make check out of place still doesn't work but that will require a bit more change.
Diffstat (limited to 'tests')
-rw-r--r--tests/internals/Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/internals/Makefile.am b/tests/internals/Makefile.am
index 3006399..c35d9be 100644
--- a/tests/internals/Makefile.am
+++ b/tests/internals/Makefile.am
@@ -1,14 +1,14 @@
noinst_HEADERS = test_common.h
noinst_PROGRAMS = test_internals test_rate_limiter
-test_internals_SOURCES = test_internals.c test_common.c $(top_builddir)/src/misc.c
-test_rate_limiter_SOURCES = test_rate_limiter.c test_common.c $(top_builddir)/src/rate_limiter.c
+test_internals_SOURCES = test_internals.c test_common.c $(top_srcdir)/src/misc.c
+test_rate_limiter_SOURCES = test_rate_limiter.c test_common.c $(top_srcdir)/src/rate_limiter.c
-test_internals_CPPFLAGS = ${my_CPPFLAGS} ${fuse_CFLAGS} -I. -I$(top_builddir)/src
+test_internals_CPPFLAGS = ${my_CPPFLAGS} ${fuse_CFLAGS} -I. -I$(top_srcdir)/src
test_internals_CFLAGS = ${my_CFLAGS}
test_internals_LDADD = ${my_LDFLAGS}
-test_rate_limiter_CPPFLAGS = ${my_CPPFLAGS} ${fuse_CFLAGS} -I. -I$(top_builddir)/src
+test_rate_limiter_CPPFLAGS = ${my_CPPFLAGS} ${fuse_CFLAGS} -I. -I$(top_srcdir)/src
test_rate_limiter_CFLAGS = ${my_CFLAGS}
test_rate_limiter_LDADD = ${my_LDFLAGS}