From bf634a0a8b64fda2e53d3e2254fe0ffdc3d67196 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 31 Jul 2021 17:20:04 +0200 Subject: patch 8.2.3256: executable test may fail on new Ubuntu system Problem: Executable test may fail on new Ubuntu system. Solution: Consider /usr/bin/cat and /bin/cat the same. --- src/testdir/test_functions.vim | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index de2db41f2..c0b425987 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -1325,6 +1325,9 @@ func Test_Executable() if catcmd =~ '\' && result =~ '\' call assert_equal('/' .. substitute(catcmd, '\', 'bin', ''), result) else + " /bin/cat and /usr/bin/cat may be hard linked, we could get either + let result = substitute(result, '/usr/bin/cat', '/bin/cat', '') + let catcmd = substitute(catcmd, 'usr/bin/cat', 'bin/cat', '') call assert_equal('/' .. catcmd, result) endif bwipe diff --git a/src/version.c b/src/version.c index d8e07b156..2ef523779 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3256, /**/ 3255, /**/ -- cgit v1.2.1