on xenial help sign in
use a temp dir
commit7b27e2ab94cf3ab4f74a042d50883ba3c7a06c68 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 16 Jan 2017, 14:50 (10 years ago) parentd274816
1 file changed+3−1
tests/plugins/Utils/CMakeLists.txt+3−1
tests/plugins/Utils/CMakeLists.txt+3−1
@@ -6,6 +6,8 @@ include_directories(
66
77add_definitions(-DCONFIG_TESTING)
88
9+execute_process(COMMAND mktemp -d OUTPUT_VARIABLE TMPDIR)
10+
911foreach(util_test
1012 QLimitProxyModel
1113 UnitySortFilterProxyModel
@@ -20,7 +22,7 @@ foreach(util_test
2022 DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Utils"
2123 )
2224 add_unity8_unittest(${util_test} ${util_test}TestExec ADD_TEST
23− ENVIRONMENT LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/plugins/Utils XDG_CONFIG_HOME=${CMAKE_CURRENT_BINARY_DIR} HOME=${CMAKE_CURRENT_BINARY_DIR}
25+ ENVIRONMENT LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/plugins/Utils HOME=$TMPDIR
2426 )
2527
2628endforeach()