mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test/old: run most tests in test_regexp_latin.vim
Most tests here don't depend on 'set encoding=latin1'. Skip Test_recursive_addstate() because of ASAN build.
This commit is contained in:
parent
8b60368c1b
commit
3dbcf69888
@ -31,14 +31,11 @@ endif
|
||||
SCRIPTS ?= $(SCRIPTS_DEFAULT)
|
||||
|
||||
# Tests using runtest.vim.
|
||||
NEW_TESTS_ALOT := test_alot_utf8 test_alot
|
||||
NEW_TESTS_ALOT := test_alot_utf8 test_alot test_alot_latin
|
||||
NEW_TESTS_IN_ALOT := $(shell sed -n '/^source/ s/^source //; s/\.vim$$//p' $(addsuffix .vim,$(NEW_TESTS_ALOT)))
|
||||
NEW_TESTS_IN_ALOT_LATIN := $(shell sed -n '/^source/ s/^source //; s/\.vim$$//p' test_alot_latin.vim)
|
||||
# Ignored tests.
|
||||
# test_alot_latin: Nvim does not allow setting encoding.
|
||||
# test_largefile: uses too much resources to run on CI.
|
||||
NEW_TESTS_IGNORE := \
|
||||
test_alot_latin $(NEW_TESTS_IN_ALOT_LATIN) \
|
||||
test_largefile \
|
||||
|
||||
NEW_TESTS := $(sort $(basename $(notdir $(wildcard test_*.vim))))
|
||||
|
@ -4,7 +4,4 @@
|
||||
" These tests use latin1 'encoding'. Setting 'encoding' is in the individual
|
||||
" files, so that they can be run by themselves.
|
||||
|
||||
" Nvim does not allow setting 'encoding', so skip this test group.
|
||||
finish
|
||||
|
||||
source test_regexp_latin.vim
|
||||
|
@ -1,5 +1,5 @@
|
||||
" Tests for regexp in latin1 encoding
|
||||
set encoding=latin1
|
||||
" set encoding=latin1
|
||||
scriptencoding latin1
|
||||
|
||||
func s:equivalence_test()
|
||||
@ -22,11 +22,13 @@ func s:equivalence_test()
|
||||
endfunc
|
||||
|
||||
func Test_equivalence_re1()
|
||||
throw 'skipped: Nvim does not support enc=latin1'
|
||||
set re=1
|
||||
call s:equivalence_test()
|
||||
endfunc
|
||||
|
||||
func Test_equivalence_re2()
|
||||
throw 'skipped: Nvim does not support enc=latin1'
|
||||
set re=2
|
||||
call s:equivalence_test()
|
||||
endfunc
|
||||
@ -98,6 +100,7 @@ func Test_multi_failure()
|
||||
endfunc
|
||||
|
||||
func Test_recursive_addstate()
|
||||
throw 'skipped: TODO: '
|
||||
" This will call addstate() recursively until it runs into the limit.
|
||||
let lnum = search('\v((){328}){389}')
|
||||
call assert_equal(0, lnum)
|
||||
|
Loading…
Reference in New Issue
Block a user