aboutsummaryrefslogtreecommitdiff
path: root/cmake/RunTests.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/RunTests.cmake')
-rw-r--r--cmake/RunTests.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake
index d470793a27..8d5b0d2402 100644
--- a/cmake/RunTests.cmake
+++ b/cmake/RunTests.cmake
@@ -64,6 +64,11 @@ endif()
set(ENV{SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_NAME}) # used by test/helpers.lua.
+if(NOT WIN32)
+ # Tests assume POSIX "sh" and may fail if SHELL=fish. #24941 #6172
+ set(ENV{SHELL} sh)
+endif()
+
execute_process(
# Note: because of "-ll" (low-level interpreter mode), some modules like
# _editor.lua are not loaded.