]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1702: Undo test is flaky v9.0.1702
authorzeertzjq <zeertzjq@outlook.com>
Sun, 13 Aug 2023 08:29:26 +0000 (10:29 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 13 Aug 2023 08:31:27 +0000 (10:31 +0200)
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 <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/testdir/dumps/Test_undo_after_write_1.vim [new file with mode: 0644]
src/testdir/dumps/Test_undo_after_write_2.vim
src/version.c

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 (file)
index 0000000..62e02b3
--- /dev/null
@@ -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
index d1d3c3d48d11bd116ab7a6b860092eba510e4343..b99f232048f239a7d864b8561e22587d7788200a 100644 (file)
@@ -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
index ddae4540314962ada511606a62e54b59a32c82ee..fc6621fa50a48523ba90a87b23c84120760cd3e9 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1702,
 /**/
     1701,
 /**/