]> granicus.if.org Git - vim/commitdiff
patch 8.2.0290: running individual test differs from all tests v8.2.0290
authorBram Moolenaar <Bram@vim.org>
Thu, 20 Feb 2020 21:35:02 +0000 (22:35 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 20 Feb 2020 21:35:02 +0000 (22:35 +0100)
Problem:    Running individual test differs from all tests.
Solution:   Pass on environment variables. (Yee Cheng Chin, closes #5672)

src/testdir/Makefile
src/testdir/README.txt
src/version.c

index a0520e0fb41058bb6a106f25caf0e2cb9be5d76f..746c849938b1b4686b61c838a6838264853722da 100644 (file)
@@ -73,7 +73,7 @@ $(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS_RES): $(SCRIPTS_FIRST)
 #      make test_largefile
 $(NEW_TESTS):
        rm -f $@.res test.log messages
-       @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile $@.res
+       @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile $@.res VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE)
        @cat messages
        @if test -f test.log; then \
                exit 1; \
index 76396fee3952cc93215de2210cf6ec2c727bc30f..d6391467617cd11c7101ce2fbc78e206d75327a5 100644 (file)
@@ -25,6 +25,8 @@ At 2), instead of running the test separately, it can be included in
 bit faster, because Vim doesn't have to be started, one Vim instance runs many
 tests.
 
+At 4), to run a test in GUI, add "GUI_FLAG=-g" to the make command.
+
 
 What you can use (see test_assert.vim for an example):
 
index 75e02ffb0721345f29b2dded2c0c6d2ccf65d4c6..58b84d054f35c40e32ea3e6877c970bb909c1e54 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    290,
 /**/
     289,
 /**/