patch 9.0.1702: Undo test is flaky

Commit: 
https://github.com/vim/vim/commit/9c30f4389944810cf88154d25dfd9ea5737c19e6
Author: zeertzjq <[email protected]>
Date:   Sun Aug 13 10:29:26 2023 +0200

    patch 9.0.1702: Undo test is flaky
    
    Problem:  Undo test is flaky.
    Solution: Apply filter and change time to "1 second ago" in both dumps.
    
    closes: #12771
    
    Signed-off-by: Christian Brabandt <[email protected]>
    Co-authored-by: zeertzjq <[email protected]>

diff --git a/src/testdir/dumps/Test_undo_after_write_1.vim 
b/src/testdir/dumps/Test_undo_after_write_1.vim
new file mode 100644
index 000000000..62e02b338
--- /dev/null
+++ b/src/testdir/dumps/Test_undo_after_write_1.vim
@@ -0,0 +1,2 @@
+" Filter that changes undo time message to "1 second ago".
+6s+|\d| |s|e|c|o|n|d|s| |a|g|o| @19|+|1| |s|e|c|o|n|d| |a|g|o| @20|+e
diff --git a/src/testdir/dumps/Test_undo_after_write_2.vim 
b/src/testdir/dumps/Test_undo_after_write_2.vim
index d1d3c3d48..b99f23204 100644
--- a/src/testdir/dumps/Test_undo_after_write_2.vim
+++ b/src/testdir/dumps/Test_undo_after_write_2.vim
@@ -1,2 +1,2 @@
-" Filter that changes the "1 second ago" message to "0 seconds ago".
-6s+|1| |s|e|c|o|n|d| |a|g|o| @18|+|0| |s|e|c|o|n|d|s| |a|g|o| @17|+e
+" Filter that changes undo time message to "1 second ago".
+6s+|\d| |s|e|c|o|n|d|s| |a|g|o| @17|+|1| |s|e|c|o|n|d| |a|g|o| @18|+e
diff --git a/src/version.c b/src/version.c
index ddae45403..fc6621fa5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1702,
 /**/
     1701,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qV6ig-00HO23-14%40256bit.org.

Raspunde prin e-mail lui