annotate src/testdir/test_options.in @ 8631:e5f2e0f8af10 v7.4.1605

commit https://github.com/vim/vim/commit/3905e291fe4375ca5c59efa9ffcb01a39c7be3a9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 19 18:44:08 2016 +0100 patch 7.4.1605 Problem: Catching exception that won't be thrown. Solution: Remove try/catch.
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Mar 2016 18:45:05 +0100
parents 55c67e16e4fd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5774
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Test for ":options".
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :let caught = 'ok'
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :try
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :options
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :catch
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :let caught = v:throwpoint . "\n" . v:exception
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :endtry
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :buf 1
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :$put =caught
7212
55c67e16e4fd commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents: 5774
diff changeset
13 :"
55c67e16e4fd commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents: 5774
diff changeset
14 :" Test that changing 'path' keeps two commas.
55c67e16e4fd commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents: 5774
diff changeset
15 :set path=foo,,bar
55c67e16e4fd commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents: 5774
diff changeset
16 :set path-=bar
55c67e16e4fd commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents: 5774
diff changeset
17 :set path+=bar
55c67e16e4fd commit https://github.com/vim/vim/commit/174674743d9a2d7361c9cd89836f8dd8651edeeb
Christian Brabandt <cb@256bit.org>
parents: 5774
diff changeset
18 :$put =&path
5774
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :/^result/,$w! test.out
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :qa!
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 ENDTEST
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22
0a295a3c9e47 updated for version 7.4.231
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 result