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:
Jan Edmund Lazo 2021-03-27 01:39:45 -04:00
parent 8b60368c1b
commit 3dbcf69888
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
3 changed files with 5 additions and 8 deletions

View File

@ -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))))

View File

@ -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

View File

@ -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)