aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cmakeconfig/paths.lua.in1
-rw-r--r--test/functional/ui/messages_spec.lua1
-rw-r--r--test/testutil.lua4
3 files changed, 6 insertions, 0 deletions
diff --git a/test/cmakeconfig/paths.lua.in b/test/cmakeconfig/paths.lua.in
index 78c66a4eac..334b5517b5 100644
--- a/test/cmakeconfig/paths.lua.in
+++ b/test/cmakeconfig/paths.lua.in
@@ -5,6 +5,7 @@ for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do
table.insert(M.include_paths, p)
end
+M.translations_enabled = "${ENABLE_TRANSLATIONS}" == "ON"
M.vterm_test_file = "${VTERM_TEST_FILE}"
M.test_build_dir = "${CMAKE_BINARY_DIR}"
M.test_source_path = "${CMAKE_SOURCE_DIR}"
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 83abf77ae6..4770c5e143 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -2424,6 +2424,7 @@ end)
describe('ui/msg_puts_printf', function()
it('output multibyte characters correctly', function()
+ skip(not t.translations_enabled(), 'Nvim not built with ENABLE_TRANSLATIONS')
local screen
local cmd = ''
local locale_dir = test_build_dir .. '/share/locale/ja/LC_MESSAGES'
diff --git a/test/testutil.lua b/test/testutil.lua
index 3655a87d93..cb8ff5ed49 100644
--- a/test/testutil.lua
+++ b/test/testutil.lua
@@ -840,4 +840,8 @@ function M.skip_fragile(pending_fn, cond)
return false
end
+function M.translations_enabled()
+ return M.paths.translations_enabled
+end
+
return M