annotate src/testdir/test_autochdir.vim @ 30183:e58937dbcb4e

Added tag v9.0.0427 for changeset 4d3c7b4927f243d18abd7f02746f58fff7df5d55
author Bram Moolenaar <Bram@vim.org>
date Fri, 09 Sep 2022 17:15:03 +0200
parents 0fe61fa4e5d1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9469
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Test 'autochdir' behavior
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2
17657
0da9bc55c31a patch 8.1.1826: tests use hand coded feature and option checks
Bram Moolenaar <Bram@vim.org>
parents: 16951
diff changeset
3 source check.vim
0da9bc55c31a patch 8.1.1826: tests use hand coded feature and option checks
Bram Moolenaar <Bram@vim.org>
parents: 16951
diff changeset
4 CheckOption autochdir
9469
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 func Test_set_filename()
12692
03a6aeea2096 patch 8.0.1224: still interference between test functions
Christian Brabandt <cb@256bit.org>
parents: 9469
diff changeset
7 let cwd = getcwd()
9469
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 call test_autochdir()
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 set acd
15184
90ab2d3ce11d patch 8.1.0602: DirChanged is also triggered when directory didn't change
Bram Moolenaar <Bram@vim.org>
parents: 12692
diff changeset
10
90ab2d3ce11d patch 8.1.0602: DirChanged is also triggered when directory didn't change
Bram Moolenaar <Bram@vim.org>
parents: 12692
diff changeset
11 let s:li = []
90ab2d3ce11d patch 8.1.0602: DirChanged is also triggered when directory didn't change
Bram Moolenaar <Bram@vim.org>
parents: 12692
diff changeset
12 autocmd DirChanged auto call add(s:li, "autocd")
90ab2d3ce11d patch 8.1.0602: DirChanged is also triggered when directory didn't change
Bram Moolenaar <Bram@vim.org>
parents: 12692
diff changeset
13 autocmd DirChanged auto call add(s:li, expand("<afile>"))
90ab2d3ce11d patch 8.1.0602: DirChanged is also triggered when directory didn't change
Bram Moolenaar <Bram@vim.org>
parents: 12692
diff changeset
14
9469
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 new
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 w samples/Xtest
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 call assert_equal("Xtest", expand('%'))
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 call assert_equal("samples", substitute(getcwd(), '.*/\(\k*\)', '\1', ''))
15184
90ab2d3ce11d patch 8.1.0602: DirChanged is also triggered when directory didn't change
Bram Moolenaar <Bram@vim.org>
parents: 12692
diff changeset
19 call assert_equal(["autocd", getcwd()], s:li)
90ab2d3ce11d patch 8.1.0602: DirChanged is also triggered when directory didn't change
Bram Moolenaar <Bram@vim.org>
parents: 12692
diff changeset
20
9469
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 bwipe!
15184
90ab2d3ce11d patch 8.1.0602: DirChanged is also triggered when directory didn't change
Bram Moolenaar <Bram@vim.org>
parents: 12692
diff changeset
22 au! DirChanged
9469
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 set noacd
18568
26a04a556982 patch 8.1.2278: using "cd" with "exe" may fail
Bram Moolenaar <Bram@vim.org>
parents: 17657
diff changeset
24 call chdir(cwd)
9469
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 call delete('samples/Xtest')
38e2fc4ee4ef commit https://github.com/vim/vim/commit/5c71994f4ee5f87d4cce990dbc9684c70b1e108b
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 endfunc
21765
08940efa6b4e patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents: 18568
diff changeset
27
26416
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
28 func Test_set_filename_other_window()
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
29 let cwd = getcwd()
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
30 call test_autochdir()
30150
0fe61fa4e5d1 patch 9.0.0411: only created files can be cleaned up with one call
Bram Moolenaar <Bram@vim.org>
parents: 29950
diff changeset
31 call mkdir('Xa', 'R')
0fe61fa4e5d1 patch 9.0.0411: only created files can be cleaned up with one call
Bram Moolenaar <Bram@vim.org>
parents: 29950
diff changeset
32 call mkdir('Xb', 'R')
0fe61fa4e5d1 patch 9.0.0411: only created files can be cleaned up with one call
Bram Moolenaar <Bram@vim.org>
parents: 29950
diff changeset
33 call mkdir('Xc', 'R')
26416
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
34 try
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
35 args Xa/aaa.txt Xb/bbb.txt
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
36 set acd
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
37 let winid = win_getid()
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
38 snext
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
39 call assert_equal('Xb', substitute(getcwd(), '.*/\([^/]*\)$', '\1', ''))
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
40 call win_execute(winid, 'file ' .. cwd .. '/Xc/ccc.txt')
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
41 call assert_equal('Xb', substitute(getcwd(), '.*/\([^/]*\)$', '\1', ''))
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
42 finally
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
43 set noacd
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
44 call chdir(cwd)
26422
4397cc04f2b1 patch 8.2.3742: dec mouse test fails without gnome terminfo entry
Bram Moolenaar <Bram@vim.org>
parents: 26416
diff changeset
45 bwipe! aaa.txt
4397cc04f2b1 patch 8.2.3742: dec mouse test fails without gnome terminfo entry
Bram Moolenaar <Bram@vim.org>
parents: 26416
diff changeset
46 bwipe! bbb.txt
4397cc04f2b1 patch 8.2.3742: dec mouse test fails without gnome terminfo entry
Bram Moolenaar <Bram@vim.org>
parents: 26416
diff changeset
47 bwipe! ccc.txt
26416
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
48 endtry
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
49 endfunc
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
50
26784
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
51 func Test_acd_win_execute()
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
52 let cwd = getcwd()
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
53 set acd
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
54 call test_autochdir()
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
55
30150
0fe61fa4e5d1 patch 9.0.0411: only created files can be cleaned up with one call
Bram Moolenaar <Bram@vim.org>
parents: 29950
diff changeset
56 call mkdir('XacdDir', 'R')
26784
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
57 let winid = win_getid()
29950
c8b1a683323c patch 9.0.0313: using common name in tests leads to flaky tests
Bram Moolenaar <Bram@vim.org>
parents: 27976
diff changeset
58 new XacdDir/file
c8b1a683323c patch 9.0.0313: using common name in tests leads to flaky tests
Bram Moolenaar <Bram@vim.org>
parents: 27976
diff changeset
59 call assert_match('testdir.XacdDir$', getcwd())
26784
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
60 cd ..
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
61 call assert_match('testdir$', getcwd())
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
62 call win_execute(winid, 'echo')
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
63 call assert_match('testdir$', getcwd())
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
64
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
65 bwipe!
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
66 set noacd
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
67 call chdir(cwd)
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
68 endfunc
c95a3f25b6b1 patch 8.2.3920: restoring directory after using another window is inefficient
Bram Moolenaar <Bram@vim.org>
parents: 26428
diff changeset
69
26171
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
70 func Test_verbose_pwd()
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
71 let cwd = getcwd()
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
72 call test_autochdir()
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
73
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
74 edit global.txt
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
75 call assert_match('\[global\].*testdir$', execute('verbose pwd'))
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
76
30150
0fe61fa4e5d1 patch 9.0.0411: only created files can be cleaned up with one call
Bram Moolenaar <Bram@vim.org>
parents: 29950
diff changeset
77 call mkdir('Xautodir', 'R')
26171
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
78 split Xautodir/local.txt
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
79 lcd Xautodir
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
80 call assert_match('\[window\].*testdir[/\\]Xautodir', execute('verbose pwd'))
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
81
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
82 set acd
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
83 wincmd w
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
84 call assert_match('\[autochdir\].*testdir$', execute('verbose pwd'))
26181
027c5b4b6f07 patch 8.2.3622: "verbose pwd" shows confusing info
Bram Moolenaar <Bram@vim.org>
parents: 26171
diff changeset
85 execute 'tcd' cwd
027c5b4b6f07 patch 8.2.3622: "verbose pwd" shows confusing info
Bram Moolenaar <Bram@vim.org>
parents: 26171
diff changeset
86 call assert_match('\[tabpage\].*testdir$', execute('verbose pwd'))
027c5b4b6f07 patch 8.2.3622: "verbose pwd" shows confusing info
Bram Moolenaar <Bram@vim.org>
parents: 26171
diff changeset
87 execute 'cd' cwd
027c5b4b6f07 patch 8.2.3622: "verbose pwd" shows confusing info
Bram Moolenaar <Bram@vim.org>
parents: 26171
diff changeset
88 call assert_match('\[global\].*testdir$', execute('verbose pwd'))
27976
d265246e6628 patch 8.2.4513: window-local directory is not applied if 'acd' fails
Bram Moolenaar <Bram@vim.org>
parents: 27792
diff changeset
89 execute 'lcd' cwd
d265246e6628 patch 8.2.4513: window-local directory is not applied if 'acd' fails
Bram Moolenaar <Bram@vim.org>
parents: 27792
diff changeset
90 call assert_match('\[window\].*testdir$', execute('verbose pwd'))
26181
027c5b4b6f07 patch 8.2.3622: "verbose pwd" shows confusing info
Bram Moolenaar <Bram@vim.org>
parents: 26171
diff changeset
91 edit
027c5b4b6f07 patch 8.2.3622: "verbose pwd" shows confusing info
Bram Moolenaar <Bram@vim.org>
parents: 26171
diff changeset
92 call assert_match('\[autochdir\].*testdir$', execute('verbose pwd'))
27976
d265246e6628 patch 8.2.4513: window-local directory is not applied if 'acd' fails
Bram Moolenaar <Bram@vim.org>
parents: 27792
diff changeset
93 enew
d265246e6628 patch 8.2.4513: window-local directory is not applied if 'acd' fails
Bram Moolenaar <Bram@vim.org>
parents: 27792
diff changeset
94 wincmd w
d265246e6628 patch 8.2.4513: window-local directory is not applied if 'acd' fails
Bram Moolenaar <Bram@vim.org>
parents: 27792
diff changeset
95 call assert_match('\[autochdir\].*testdir[/\\]Xautodir', execute('verbose pwd'))
d265246e6628 patch 8.2.4513: window-local directory is not applied if 'acd' fails
Bram Moolenaar <Bram@vim.org>
parents: 27792
diff changeset
96 wincmd w
d265246e6628 patch 8.2.4513: window-local directory is not applied if 'acd' fails
Bram Moolenaar <Bram@vim.org>
parents: 27792
diff changeset
97 call assert_match('\[window\].*testdir$', execute('verbose pwd'))
26171
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
98 wincmd w
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
99 call assert_match('\[autochdir\].*testdir[/\\]Xautodir', execute('verbose pwd'))
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
100 set noacd
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
101 call assert_match('\[autochdir\].*testdir[/\\]Xautodir', execute('verbose pwd'))
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
102 wincmd w
27976
d265246e6628 patch 8.2.4513: window-local directory is not applied if 'acd' fails
Bram Moolenaar <Bram@vim.org>
parents: 27792
diff changeset
103 call assert_match('\[window\].*testdir$', execute('verbose pwd'))
26416
7606d9b13068 patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Bram Moolenaar <Bram@vim.org>
parents: 26181
diff changeset
104 execute 'cd' cwd
27976
d265246e6628 patch 8.2.4513: window-local directory is not applied if 'acd' fails
Bram Moolenaar <Bram@vim.org>
parents: 27792
diff changeset
105 call assert_match('\[global\].*testdir$', execute('verbose pwd'))
26171
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
106 wincmd w
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
107 call assert_match('\[window\].*testdir[/\\]Xautodir', execute('verbose pwd'))
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
108
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
109 bwipe!
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
110 call chdir(cwd)
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
111 endfunc
fa8161b003f6 patch 8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Bram Moolenaar <Bram@vim.org>
parents: 21765
diff changeset
112
27784
bfce04a99561 patch 8.2.4418: crash when using special multi-byte character
Bram Moolenaar <Bram@vim.org>
parents: 26784
diff changeset
113 func Test_multibyte()
bfce04a99561 patch 8.2.4418: crash when using special multi-byte character
Bram Moolenaar <Bram@vim.org>
parents: 26784
diff changeset
114 " using an invalid character should not cause a crash
bfce04a99561 patch 8.2.4418: crash when using special multi-byte character
Bram Moolenaar <Bram@vim.org>
parents: 26784
diff changeset
115 set wic
27792
2d7691a945d1 patch 8.2.4422: autochdir test fails on MS-Windows
Bram Moolenaar <Bram@vim.org>
parents: 27784
diff changeset
116 call assert_fails('tc *', has('win32') ? 'E480:' : 'E344:')
27784
bfce04a99561 patch 8.2.4418: crash when using special multi-byte character
Bram Moolenaar <Bram@vim.org>
parents: 26784
diff changeset
117 set nowic
bfce04a99561 patch 8.2.4418: crash when using special multi-byte character
Bram Moolenaar <Bram@vim.org>
parents: 26784
diff changeset
118 endfunc
bfce04a99561 patch 8.2.4418: crash when using special multi-byte character
Bram Moolenaar <Bram@vim.org>
parents: 26784
diff changeset
119
bfce04a99561 patch 8.2.4418: crash when using special multi-byte character
Bram Moolenaar <Bram@vim.org>
parents: 26784
diff changeset
120
21765
08940efa6b4e patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents: 18568
diff changeset
121 " vim: shiftwidth=2 sts=2 expandtab