diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-05-30 18:45:23 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-05-30 18:45:23 +0200 |
commit | 16299b57cb60767b68f475a182edd45333fbb2df (patch) | |
tree | de4680f000f2352a22e80569c80dac85acd33c02 /src/testdir/test95.in | |
parent | 4b6ebe6dce90db34485c161a72faf66038d78358 (diff) | |
download | vim-git-16299b57cb60767b68f475a182edd45333fbb2df.tar.gz |
updated for version 7.3.1073v7.3.1073
Problem: New regexp engine may run out of states.
Solution: Allocate states dynamically. Also make the test report errors.
Diffstat (limited to 'src/testdir/test95.in')
-rw-r--r-- | src/testdir/test95.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testdir/test95.in b/src/testdir/test95.in index 111d87758..306c1b4f9 100644 --- a/src/testdir/test95.in +++ b/src/testdir/test95.in @@ -85,7 +85,11 @@ STARTTEST : continue : endif : let ®expengine = engine -: let l = matchlist(text, pat) +: try +: let l = matchlist(text, pat) +: catch +: $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", caused an exception: \"' . v:exception . '\"' +: endtry :" check the match itself : if len(l) == 0 && len(t) > matchidx : $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", did not match, expected: \"' . t[matchidx] . '\"' |