annotate src/testdir/test97.in @ 10270:e5dddd764fef v8.0.0032

commit https://github.com/vim/vim/commit/3e8474dd50f64c998bb665ce852f584a58dede6b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 12 17:52:42 2016 +0200 patch 8.0.0032 Problem: Tests may change the input file when something goes wrong. Solution: Avoid writing the input file.
author Christian Brabandt <cb@256bit.org>
date Wed, 12 Oct 2016 18:00:05 +0200
parents 6d0a1132dd71
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5104
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Test whether glob()/globpath() return correct results with certain escaped
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 characters.
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 STARTTEST
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :so small.vim
5879
6d0a1132dd71 updated for version 7.4.282
Bram Moolenaar <bram@vim.org>
parents: 5873
diff changeset
6 :" make sure glob() doesn't use the shell
5104
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :set shell=doesnotexist
5879
6d0a1132dd71 updated for version 7.4.282
Bram Moolenaar <bram@vim.org>
parents: 5873
diff changeset
8 :" consistent sorting of file names
6d0a1132dd71 updated for version 7.4.282
Bram Moolenaar <bram@vim.org>
parents: 5873
diff changeset
9 :set nofileignorecase
10270
e5dddd764fef commit https://github.com/vim/vim/commit/3e8474dd50f64c998bb665ce852f584a58dede6b
Christian Brabandt <cb@256bit.org>
parents: 5879
diff changeset
10 :e! test.out
5873
8e9db1f27a00 updated for version 7.4.279
Bram Moolenaar <bram@vim.org>
parents: 5104
diff changeset
11 :$put =glob('Xxx\{')
8e9db1f27a00 updated for version 7.4.279
Bram Moolenaar <bram@vim.org>
parents: 5104
diff changeset
12 :$put =glob('Xxx\$')
5104
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :w! Xxx{
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :w! Xxx\$
5873
8e9db1f27a00 updated for version 7.4.279
Bram Moolenaar <bram@vim.org>
parents: 5104
diff changeset
15 :$put =glob('Xxx\{')
8e9db1f27a00 updated for version 7.4.279
Bram Moolenaar <bram@vim.org>
parents: 5104
diff changeset
16 :$put =glob('Xxx\$')
8e9db1f27a00 updated for version 7.4.279
Bram Moolenaar <bram@vim.org>
parents: 5104
diff changeset
17 :"
8e9db1f27a00 updated for version 7.4.279
Bram Moolenaar <bram@vim.org>
parents: 5104
diff changeset
18 :$put =string(globpath('sautest/autoload', '*.vim'))
8e9db1f27a00 updated for version 7.4.279
Bram Moolenaar <bram@vim.org>
parents: 5104
diff changeset
19 :$put =string(globpath('sautest/autoload', '*.vim', 0, 1))
5104
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :w
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :qa!
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 ENDTEST
93cccad6a26b updated for version 7.3.1295
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23