comparison src/testdir/test_compiler.vim @ 33333:fed9c5ffde42

patch 9.0.1931: make test_compilers fails on ubuntu Commit: https://github.com/vim/vim/commit/ca0ffc0d63727850c520a80929698e4c199b17f4 Author: Dominique Pell? <dominique.pelle@tomtom.com> Date: Sun Sep 24 22:57:41 2023 +0200 patch 9.0.1931: make test_compilers fails on ubuntu Problem: make test_compilers fails on ubuntu Solution: set LC_ALL=C fix: make test_compiler failed on xubuntu 22.04.3 Problem: 'make test_compiler' failed on Linux xubuntu 22.04.3 but succeeded on e.g. macOS. To reproduce: ``` $ ./configure --with-features=huge --enable-gui=no --enable-perlinterp=yes $ make -j12 $ cd vim/src/testdir $ make test_compiler ...snip... Found errors in Test_compiler(): command line..script /home/dope/sb/vim/src/testdir/runtest.vim[601]..function RunTheTest[54]..Test_compiler line 24: command did not fail: clist command line..script /home/dope/sb/vim/src/testdir/runtest.vim[601]..function RunTheTest[54]..Test_compiler line 30: Pattern '\\n \\d\\+ Xfoo.pl:3: Global symbol "$foo" requires explicit package name' does not match '\n19 Xfoo.pl:3: Global symbol "$foo" requires explicit package name (did you forget to declare "my $foo"?)' make: *** [Makefile:70: test_compiler] Error 1 ``` Solution: set `LC_ALL` to "C" in `Test_compiler()` closes: #13173 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Dominique Pell? <dominique.pelle@tomtom.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Sep 2023 23:00:04 +0200
parents efc174960b10
children 7ed07817c287
comparison
equal deleted inserted replaced
33332:4c36f4d3586e 33333:fed9c5ffde42
5 5
6 func Test_compiler() 6 func Test_compiler()
7 CheckExecutable perl 7 CheckExecutable perl
8 CheckFeature quickfix 8 CheckFeature quickfix
9 9
10 " $LANG changes the output of Perl. 10 let save_LC_ALL = $LC_ALL
11 if $LANG != '' 11 let $LC_ALL= "C"
12 unlet $LANG
13 endif
14 12
15 " %:S does not work properly with 'shellslash' set 13 " %:S does not work properly with 'shellslash' set
16 let save_shellslash = &shellslash 14 let save_shellslash = &shellslash
17 set noshellslash 15 set noshellslash
18 16
38 36
39 37
40 let &shellslash = save_shellslash 38 let &shellslash = save_shellslash
41 call delete('Xfoo.pl') 39 call delete('Xfoo.pl')
42 bw! 40 bw!
41 let $LC_ALL = save_LC_ALL
43 endfunc 42 endfunc
44 43
45 func GetCompilerNames() 44 func GetCompilerNames()
46 return glob('$VIMRUNTIME/compiler/*.vim', 0, 1) 45 return glob('$VIMRUNTIME/compiler/*.vim', 0, 1)
47 \ ->map({i, v -> substitute(v, '.*[\\/]\([a-zA-Z0-9_\-]*\).vim', '\1', '')}) 46 \ ->map({i, v -> substitute(v, '.*[\\/]\([a-zA-Z0-9_\-]*\).vim', '\1', '')})