Skip to content

Commit a2cce86

Browse files
committed
patch 7.4.1030
Problem: test49 is still slow. Solution: Move more tests from old to new style.
1 parent d334396 commit a2cce86

5 files changed

Lines changed: 521 additions & 512 deletions

File tree

src/testdir/runtest.vim

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,17 @@ let done = 0
5050
let fail = 0
5151
let errors = []
5252
let messages = []
53-
try
53+
if expand('%') =~ 'test_viml.vim'
54+
" this test has intentional errors, don't use try/catch.
5455
source %
55-
catch
56-
let fail += 1
57-
call add(errors, 'Caught exception: ' . v:exception . ' @ ' . v:throwpoint)
58-
endtry
56+
else
57+
try
58+
source %
59+
catch
60+
let fail += 1
61+
call add(errors, 'Caught exception: ' . v:exception . ' @ ' . v:throwpoint)
62+
endtry
63+
endif
5964

6065
" Locate Test_ functions and execute them.
6166
redir @q

src/testdir/test49.ok

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
Results of test49.vim:
2-
*** Test 7: OK (90563)
3-
*** Test 8: OK (562493431)
4-
*** Test 9: OK (363)
5-
*** Test 10: OK (559615)
6-
*** Test 11: OK (2049)
7-
*** Test 12: OK (352256)
8-
*** Test 13: OK (145)
9-
*** Test 14: OK (42413)
10-
*** Test 15: OK (42413)
112
*** Test 16: OK (8722)
123
*** Test 17: OK (285127993)
134
*** Test 18: OK (67224583)

0 commit comments

Comments
 (0)