diff src/testdir/test_function_lists.vim @ 24570:27033b8bba0e v8.2.2824

patch 8.2.2824: MS-Windows: build failure with MSVC Commit: https://github.com/vim/vim/commit/1bb0da25a6581cd09d6df91f11ce866dc775597b Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 2 19:15:05 2021 +0200 patch 8.2.2824: MS-Windows: build failure with MSVC Problem: MS-Windows: build failure with MSVC. Solution: Adjust the list of distributed files. Add hint about python. Adjust path for reading runtime files.
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 May 2021 19:30:04 +0200
parents f342bdc79295
children c7aa7acb23bb
line wrap: on
line diff
--- a/src/testdir/test_function_lists.vim
+++ b/src/testdir/test_function_lists.vim
@@ -55,7 +55,12 @@ func Test_function_lists()
   " Verify that the ":help functions" list is complete and in ASCII order.
 
   enew!
-  read ../../runtime/doc/eval.txt
+  if filereadable('../../doc/eval.txt')
+    " unpacked MS-Windows zip archive
+    read ../../doc/eval.txt
+  else
+    read ../../runtime/doc/eval.txt
+  endif
   call search('\*functions\*$')
   call search('^USAGE')
   1,.d
@@ -75,7 +80,12 @@ func Test_function_lists()
   " Verify that the ":help function-list" list is complete.
 
   enew!
-  read ../../runtime/doc/usr_41.txt
+  if filereadable('../../doc/usr_41.txt')
+    " unpacked MS-Windows zip archive
+    read ../../doc/usr_41.txt
+  else
+    read ../../runtime/doc/usr_41.txt
+  endif
   call search('\*function-list\*$')
   1,.d
   call search('^==*$')