diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/tests/test_env.sh.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/tests/test_env.sh.in b/cpp/src/tests/test_env.sh.in index 842d7729cb..26be15b48a 100644 --- a/cpp/src/tests/test_env.sh.in +++ b/cpp/src/tests/test_env.sh.in @@ -72,7 +72,13 @@ exportmodule XML_LIB xml.so # Qpid options export QPID_NO_MODULE_DIR=1 # Don't accidentally load installed modules -export QPID_DATA_DIR= # Default to no data dir, not ~/.qpidd +export QPID_DATA_DIR= + +# Use temporary directory if $HOME does not exist +if [ ! -e "$HOME" ]; then + export QPID_DATA_DIR=/tmp/qpid + export QPID_PID_DIR=/tmp/qpid +fi # Options for boost test framework export BOOST_TEST_SHOW_PROGRESS=yes |