Skip to content

Commit c73f9f5

Browse files
committed
Fixed hanging unit test on macOS without clang-format.
1 parent 4567538 commit c73f9f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

init_test.lua

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ test('format.on_save should ignore selected text', function()
4646
test.assert_equal(buffer:get_text(), 'int main() { return 0; }')
4747
test.assert_equal(buffer:get_sel_text(), 'int')
4848
end)
49+
if not have_clang_format then skip('clang-format is not available') end
4950

5051
test('format.code should ignore saving files matching format.ignore_file_patterns', function()
5152
local subdir = 'subdir'

0 commit comments

Comments
 (0)