patch 8.2.1183: assert_fails() checks the last error message
Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior.
Showing
- runtime/doc/testing.txt 17 additions, 2 deletionsruntime/doc/testing.txt
- src/evalvars.c 3 additions, 6 deletionssrc/evalvars.c
- src/globals.h 4 additions, 0 deletionssrc/globals.h
- src/if_cscope.c 0 additions, 1 deletionsrc/if_cscope.c
- src/message.c 3 additions, 0 deletionssrc/message.c
- src/testdir/test_autocmd.vim 4 additions, 8 deletionssrc/testdir/test_autocmd.vim
- src/testdir/test_buffer.vim 2 additions, 2 deletionssrc/testdir/test_buffer.vim
- src/testdir/test_cd.vim 2 additions, 2 deletionssrc/testdir/test_cd.vim
- src/testdir/test_channel.vim 7 additions, 7 deletionssrc/testdir/test_channel.vim
- src/testdir/test_clientserver.vim 3 additions, 3 deletionssrc/testdir/test_clientserver.vim
- src/testdir/test_cmdline.vim 3 additions, 3 deletionssrc/testdir/test_cmdline.vim
- src/testdir/test_cpoptions.vim 1 addition, 1 deletionsrc/testdir/test_cpoptions.vim
- src/testdir/test_cscope.vim 1 addition, 1 deletionsrc/testdir/test_cscope.vim
- src/testdir/test_excmd.vim 2 additions, 2 deletionssrc/testdir/test_excmd.vim
- src/testdir/test_expr.vim 1 addition, 1 deletionsrc/testdir/test_expr.vim
- src/testdir/test_functions.vim 5 additions, 5 deletionssrc/testdir/test_functions.vim
- src/testdir/test_global.vim 1 addition, 1 deletionsrc/testdir/test_global.vim
- src/testdir/test_json.vim 20 additions, 20 deletionssrc/testdir/test_json.vim
- src/testdir/test_let.vim 1 addition, 1 deletionsrc/testdir/test_let.vim
- src/testdir/test_listdict.vim 3 additions, 3 deletionssrc/testdir/test_listdict.vim
Loading
Please register or sign in to comment