aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-05-31 10:45:20 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-06-07 00:27:26 +0200
commita49c92fc5b12cd9645b8638b409442ad3ca652bc (patch)
treed64221af1c83292b7ab3d1009478d7c1393c225e
parentbb96b8219dc6a776bf0e765cfbc16a833e98b351 (diff)
downloadrneovim-a49c92fc5b12cd9645b8638b409442ad3ca652bc.tar.gz
rneovim-a49c92fc5b12cd9645b8638b409442ad3ca652bc.tar.bz2
rneovim-a49c92fc5b12cd9645b8638b409442ad3ca652bc.zip
test: Set $NVIM_LOG_FILE to test-local path
- Do not delete it: may need to inspect it after tests finished. - Avoids writing to stderr in cases where the test-local $XDG_DATA_HOME was not created yet.
-rw-r--r--cmake/RunTests.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake
index bd7b630708..5f818cc9ad 100644
--- a/cmake/RunTests.cmake
+++ b/cmake/RunTests.cmake
@@ -3,6 +3,10 @@ set(ENV{NVIM_RPLUGIN_MANIFEST} ${WORKING_DIR}/Xtest_rplugin_manifest)
set(ENV{XDG_CONFIG_HOME} ${WORKING_DIR}/Xtest_xdg/config)
set(ENV{XDG_DATA_HOME} ${WORKING_DIR}/Xtest_xdg/share)
+if(NOT DEFINED ENV{NVIM_LOG_FILE})
+ set(ENV{NVIM_LOG_FILE} ${WORKING_DIR}/.nvimlog)
+endif()
+
if(NVIM_PRG)
set(ENV{NVIM_PRG} "${NVIM_PRG}")
endif()