diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-03 22:08:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-03 22:08:10 +0200 |
commit | f1c118be93184e8e57e3e80b1b3383f464ed649e (patch) | |
tree | 027310f2d3bd54405b91ff422ca3772f59f2659f /src/testdir/test_functions.vim | |
parent | 20aac6c1126988339611576d425965a25a777658 (diff) |
patch 8.1.0347: some tests fail on Solarisv8.1.0347
Problem: Some tests fail on Solaris.
Solution: Skip writefile test. Fix path to libc.so. Improve test for Turkish
case change. (Libor Bukata, Bjorn Linse, closes #3403)
Diffstat (limited to 'src/testdir/test_functions.vim')
-rw-r--r-- | src/testdir/test_functions.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index 848e7986c3..cc82f8191c 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -1,4 +1,5 @@ " Tests for various functions. +source shared.vim " Must be done first, since the alternate buffer must be unset. func Test_00_bufexists() @@ -1006,6 +1007,17 @@ func Test_libcall_libcallnr() let libc = 'msvcrt.dll' elseif has('mac') let libc = 'libSystem.B.dylib' + elseif system('uname -s') =~ 'SunOS' + " Set the path to libc.so according to the architecture. + let test_bits = system('file ' . GetVimProg()) + let test_arch = system('uname -p') + if test_bits =~ '64-bit' && test_arch =~ 'sparc' + let libc = '/usr/lib/sparcv9/libc.so' + elseif test_bits =~ '64-bit' && test_arch =~ 'i386' + let libc = '/usr/lib/amd64/libc.so' + else + let libc = '/usr/lib/libc.so' + endif else " On Unix, libc.so can be in various places. " Interestingly, using an empty string for the 1st argument of libcall |