diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-05-09 13:28:06 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-05-19 14:06:43 +0200 |
commit | 435fecd75121bd4e025290b456f68f1177836176 (patch) | |
tree | 92d5eaf83810e99baa70d5b250a9fd024b2786aa | |
parent | 7c888e0d23b98b00a11616364499f0f651f9c481 (diff) | |
download | strongswan-435fecd75121bd4e025290b456f68f1177836176.tar.bz2 strongswan-435fecd75121bd4e025290b456f68f1177836176.tar.xz |
unit-tests: Make sure plugins in the builddir are loaded
When running the tests in GDB the working directory apparently is
different. With the relative path used previously the plugins would not
be found and those installed on the system would get used.
-rw-r--r-- | src/libstrongswan/tests/Makefile.am | 2 | ||||
-rw-r--r-- | src/libtls/tests/Makefile.am | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/tests/Makefile.am b/src/libstrongswan/tests/Makefile.am index 331a5480d..b5fb45a1f 100644 --- a/src/libstrongswan/tests/Makefile.am +++ b/src/libstrongswan/tests/Makefile.am @@ -52,7 +52,7 @@ tests_SOURCES = tests.h tests.c \ tests_CFLAGS = \ -I$(top_srcdir)/src/libstrongswan \ -I$(top_srcdir)/src/libstrongswan/tests \ - -DPLUGINDIR=\""$(top_builddir)/src/libstrongswan/plugins\"" \ + -DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \ -DPLUGINS=\""${s_plugins}\"" \ @COVERAGE_CFLAGS@ diff --git a/src/libtls/tests/Makefile.am b/src/libtls/tests/Makefile.am index 1c0e2f941..456383f02 100644 --- a/src/libtls/tests/Makefile.am +++ b/src/libtls/tests/Makefile.am @@ -11,7 +11,7 @@ tls_tests_CFLAGS = \ -I$(top_srcdir)/src/libtls \ -I$(top_srcdir)/src/libstrongswan \ -I$(top_srcdir)/src/libstrongswan/tests \ - -DPLUGINDIR=\""$(top_builddir)/src/libstrongswan/plugins\"" \ + -DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \ -DPLUGINS=\""${s_plugins}\"" \ @COVERAGE_CFLAGS@ |