浏览代码

Fix test failure

Yegappan Lakshmanan 4 年之前
父节点
当前提交
ac8426ba4a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/unit_tests.vim

+ 2 - 2
test/unit_tests.vim

@@ -1737,12 +1737,12 @@ func Test_59()
         \ "source ../plugin/mru.vim",
         \ "call writefile([@#], 'Xoutput')"
         \ ], 'Xscript')
-  !vim -u NONE --noplugin i NONE -N -S Xscript -c "qa!"
+  silent! !vim -u NONE --noplugin i NONE -N -S Xscript -c "qa"
   if !filereadable('Xoutput')
     call LogResult(test_name, 'FAIL (1)')
   else
     let lines = readfile('Xoutput')
-    if len(lines) == 1 && lines[0] == 'Xfirstfile'
+    if len(lines) == 1 && lines[0] =~ 'Xfirstfile$'
       call LogResult(test_name, 'pass')
     else
       call LogResult(test_name, 'FAIL (2)')