Skip to content

Commit b2f5c83

Browse files
committed
updated for version 7.4a.014
Problem: Test 86 and 89 have a problem with using a shadow dir. Solution: Adjust for the different directory structure. (James McCoy)
1 parent 9a978ee commit b2f5c83

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

src/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ CClink = $(CC)
420420
# dlopen(), dlsym(), dlclose(), i.e. pythonX.Y.so must be available
421421
# However, this may still cause problems, such as "import termios" failing.
422422
# Build two separate versions of Vim in that case.
423-
#CONF_OPT_PYTHON = --enable-pythoninterp
423+
CONF_OPT_PYTHON = --enable-pythoninterp
424424
#CONF_OPT_PYTHON = --enable-pythoninterp=dynamic
425-
#CONF_OPT_PYTHON3 = --enable-python3interp
425+
CONF_OPT_PYTHON3 = --enable-python3interp
426426
#CONF_OPT_PYTHON3 = --enable-python3interp=dynamic
427427

428428
# RUBY
@@ -499,7 +499,7 @@ CClink = $(CC)
499499
#CONF_OPT_FEAT = --with-features=small
500500
#CONF_OPT_FEAT = --with-features=normal
501501
#CONF_OPT_FEAT = --with-features=big
502-
#CONF_OPT_FEAT = --with-features=huge
502+
CONF_OPT_FEAT = --with-features=huge
503503

504504
# COMPILED BY - For including a specific e-mail address for ":version".
505505
#CONF_OPT_COMPBY = "--with-compiledby=John Doe <[email protected]>"
@@ -567,7 +567,7 @@ CClink = $(CC)
567567
#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
568568

569569
# Use this with GCC to check for mistakes, unused arguments, etc.
570-
#CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
570+
CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
571571
#CFLAGS = -g -O2 -Wall -Wextra -Wmissing-prototypes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DU_DEBUG
572572
#PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers
573573
#MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter
@@ -613,7 +613,7 @@ LINT_OPTIONS = -beprxzF
613613
# Configuration is in the .ccmalloc or ~/.ccmalloc file.
614614
# Doesn't work very well, since memory linked to from global variables
615615
# (in libraries) is also marked as leaked memory.
616-
#LEAK_CFLAGS = -DEXITFREE
616+
LEAK_CFLAGS = -DEXITFREE
617617
#LEAK_LIBS = -lccmalloc
618618

619619
#####################################################
@@ -2366,6 +2366,7 @@ shadow: runtime pixmaps
23662366
../../testdir/vimrc.unix \
23672367
../../testdir/*.in \
23682368
../../testdir/*.vim \
2369+
../../testdir/python* \
23692370
../../testdir/test83-tags? \
23702371
../../testdir/*.ok .
23712372

src/testdir/test86.in

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,19 @@ fnamemodify = vim.Function('fnamemodify')
857857
cb.append(fnamemodify('.', ':p:h:t'))
858858
cb.append(vim.eval('@%'))
859859
os.chdir('..')
860-
cb.append(fnamemodify('.', ':p:h:t'))
861-
cb.append(vim.eval('@%').replace(os.path.sep, '/'))
860+
path = fnamemodify('.', ':p:h:t')
861+
if path != 'src':
862+
# Running tests from a shadow directory, so move up another level
863+
# This will result in @% looking like shadow/testdir/test86.in, hence the
864+
# extra fnamemodify
865+
os.chdir('..')
866+
cb.append(fnamemodify('.', ':p:h:t'))
867+
cb.append(fnamemodify(vim.eval('@%'), ':s?^%s.??' % path).replace(os.path.sep, '/'))
868+
os.chdir(path)
869+
del path
870+
else:
871+
cb.append(fnamemodify('.', ':p:h:t'))
872+
cb.append(vim.eval('@%').replace(os.path.sep, '/'))
862873
os.chdir('testdir')
863874
cb.append(fnamemodify('.', ':p:h:t'))
864875
cb.append(vim.eval('@%'))

src/testdir/test89.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ STARTTEST
5151
:$put h
5252
:"
5353
:let cwd=getcwd()
54-
:cd ../..
54+
:cd ..
55+
:" Tests may be run from a shadow directory, so an extra cd needs to be done to
56+
:" get above src/
57+
:if fnamemodify(getcwd(), ':t') != 'src' | cd ../.. | else | cd .. | endif
5558
:$put =''
5659
:$put ='Testing findfile'
5760
:$put =''

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ static char *(features[]) =
727727

728728
static int included_patches[] =
729729
{ /* Add new patch number below this line */
730+
/**/
731+
14,
730732
/**/
731733
13,
732734
/**/

0 commit comments

Comments
 (0)