aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2015-03-01 14:49:48 -0500
committerJohn Szakmeister <john@szakmeister.net>2015-03-01 15:25:39 -0500
commitd8ef23849af0e57a35a87d477a468a9241f78ad8 (patch)
tree2cfb5e66fa62662e6ea6f3aac719ebad56928b16 /cmake
parentea35062589142459ca657f3977d76636bf9bd29d (diff)
downloadrneovim-d8ef23849af0e57a35a87d477a468a9241f78ad8.tar.gz
rneovim-d8ef23849af0e57a35a87d477a468a9241f78ad8.tar.bz2
rneovim-d8ef23849af0e57a35a87d477a468a9241f78ad8.zip
tests: prevent busted from reloading the ffi module and others
It turns out that Busted started cleaning the environment in 2.0rc5 as a result of Olivine-Labs/busted#62. This, in turn, caused the ffi module to be reloaded for each spec file, and LuaJIT doesn't appreciate it. The net effect is an assertion error in LuaJIT. By using the --helper feature of Busted, we can pre-load some modules ahead of Busted and prevent it from reloading them--making LuaJIT happy again.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/RunTests.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake
index 8f303bae2e..a4330a58de 100644
--- a/cmake/RunTests.cmake
+++ b/cmake/RunTests.cmake
@@ -15,6 +15,7 @@ endif()
execute_process(
COMMAND ${BUSTED_PRG} -v -o ${BUSTED_OUTPUT_TYPE}
+ --helper=${TEST_DIR}/${TEST_TYPE}/preload.lua
--lpath=${BUILD_DIR}/?.lua ${TEST_PATH}
WORKING_DIRECTORY ${WORKING_DIR}
ERROR_VARIABLE err