diff options
author | Ingo Huerner <ingo_huerner@mentor.com> | 2017-06-02 12:50:37 +0200 |
---|---|---|
committer | Ingo Huerner <ingo_huerner@mentor.com> | 2017-06-02 12:50:37 +0200 |
commit | 783f239c37470624f56cea6accb85a47309cb44e (patch) | |
tree | 048d6cb711cdce0837c6627548bab850e3b9141e | |
parent | a58de454fe5d936c54cb4f18dc30905673334c60 (diff) | |
download | persistence-client-library-783f239c37470624f56cea6accb85a47309cb44e.tar.gz |
Make test data directory (localestatedir) variable
-rw-r--r-- | test/Makefile.am | 1 | ||||
-rw-r--r-- | test/persistence_client_library_test.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index fa27f60..59036a6 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -27,6 +27,7 @@ persistence_client_library_dbus_test_LDADD = $(DEPS_LIBS) \ persistence_client_library_test_SOURCES = persistence_client_library_test.c persistence_env_checker.c persistence_client_library_test_LDADD = $(DEPS_LIBS) $(CHECK_LIBS) \ $(top_builddir)/src/libpersistence_client_library.la +persistence_client_library_test_CFLAGS = -DLOCALSTATEDIR='"$(localstatedir)"' $(AM_CFLAGS) persistence_client_library_test_file_SOURCES = persistence_client_library_test_file.c persistence_env_checker.c persistence_client_library_test_file_LDADD = $(DEPS_LIBS) $(CHECK_LIBS) \ diff --git a/test/persistence_client_library_test.c b/test/persistence_client_library_test.c index e58ace4..1d62aff 100644 --- a/test/persistence_client_library_test.c +++ b/test/persistence_client_library_test.c @@ -1701,8 +1701,7 @@ END_TEST void* pasInstallThread(void* userData) { // install data - - if(system("persadmin_tool install /usr/local/var/PAS_data.tar.gz") == -1) + if(system("persadmin_tool install " LOCALSTATEDIR "/PAS_data.tar.gz") == -1) { printf("#### Failed to install data\n"); } |