]> granicus.if.org Git - vim/commitdiff
patch 8.2.2630: hard to see where a test gets stuck v8.2.2630
authorBram Moolenaar <Bram@vim.org>
Sat, 20 Mar 2021 15:44:25 +0000 (16:44 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 20 Mar 2021 15:44:25 +0000 (16:44 +0100)
Problem:    Hard to see where a test gets stuck.
Solution:   Print the executed test function. (Dominique PellĂ©, closes #7975)

src/testdir/Makefile
src/version.c

index 2fb329aa1c5aa25113f9b270c160600fd886373a..050a032f1acec96c2767d7ee3f56476b49f58968 100644 (file)
@@ -12,7 +12,7 @@ SCRIPTSOURCE = ../../runtime
 # Comment out this line to see the verbose output of tests.
 #
 # Catches SwapExists to avoid hanging at the ATTENTION prompt.
-REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' > /dev/null
+REDIR_TEST_TO_NULL = --cmd 'au SwapExists * let v:swapchoice = "e"' | LC_ALL=C LANG=C LANGUAGE=C awk '/Executing Test_/{match($$0, "Executing Test_[^\\)]*\\)"); print substr($$0, RSTART, RLENGTH) "\r"; fflush()}'
 
 # Uncomment this line to use valgrind for memory leaks and extra warnings.
 #   The output goes into a file "valgrind.testN"
index 6ec87e4ba637fb06ea28df79ef04695ae68555a4..a174b2871718cce3b2e208d0469fac17f3476433 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2630,
 /**/
     2629,
 /**/