Skip to content

Commit 88324b4

Browse files
committed
Fixed failing test on Windows.
1 parent 74fa349 commit 88324b4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

init_test.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ test('format.code should output errors to the statusbar', function()
2626

2727
format.code()
2828

29-
test.assert_contains(ui.statusbar_text, _L['Format error:'] .. ' ' .. command:gsub('%-', '%%-'))
29+
-- Note: Windows spawns processes via cmd.exe, which always exists, so the statusbar
30+
-- error from `textadept.editing.filter_through()` will be displayed.
31+
if not WIN32 then
32+
test.assert_contains(ui.statusbar_text, _L['Format error:'] .. ' ' .. command:gsub('%-', '%%-'))
33+
end
3034
test.assert_equal(#_BUFFERS, 1)
3135
end)
3236

0 commit comments

Comments
 (0)