comparison src/testdir/test_buffer.vim @ 26376:856b56468157 v8.2.3719

patch 8.2.3719: MS-Windows: test sometimes runs into existing swap file Commit: https://github.com/vim/vim/commit/f8bc0ce2671d7f7f73760f665b52e4f00a1bbcac Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 2 12:30:22 2021 +0000 patch 8.2.3719: MS-Windows: test sometimes runs into existing swap file Problem: MS-Windows: test sometimes runs into existing swap file. Solution: Use a different file name.
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 Dec 2021 13:45:03 +0100
parents 34a6db7af738
children a4aad5142959
comparison
equal deleted inserted replaced
26375:80090a424cdd 26376:856b56468157
387 CheckMSWindows 387 CheckMSWindows
388 388
389 set noshellslash 389 set noshellslash
390 %bwipe! 390 %bwipe!
391 let bufnames = [ 391 let bufnames = [
392 \ #{id: 'b0', name: 'test://xyz/foo/b0' , match: 1}, 392 \ #{id: 'ssb0', name: 'test://xyz/foo/ssb0' , match: 1},
393 \ #{id: 'b1', name: 'test+abc://xyz/foo/b1', match: 0}, 393 \ #{id: 'ssb1', name: 'test+abc://xyz/foo/ssb1', match: 0},
394 \ #{id: 'b2', name: 'test_abc://xyz/foo/b2', match: 0}, 394 \ #{id: 'ssb2', name: 'test_abc://xyz/foo/ssb2', match: 0},
395 \ #{id: 'b3', name: 'test-abc://xyz/foo/b3', match: 1}, 395 \ #{id: 'ssb3', name: 'test-abc://xyz/foo/ssb3', match: 1},
396 \ #{id: 'b4', name: '-test://xyz/foo/b4' , match: 0}, 396 \ #{id: 'ssb4', name: '-test://xyz/foo/ssb4' , match: 0},
397 \ #{id: 'b5', name: 'test-://xyz/foo/b5' , match: 0}, 397 \ #{id: 'ssb5', name: 'test-://xyz/foo/ssb5' , match: 0},
398 \] 398 \]
399 for buf in bufnames 399 for buf in bufnames
400 new `=buf.name` 400 new `=buf.name`
401 if buf.match 401 if buf.match
402 call assert_equal(buf.name, getbufinfo(buf.id)[0].name) 402 call assert_equal(buf.name, getbufinfo(buf.id)[0].name)