Skip to content

Commit 8b4ccb5

Browse files
vlmarekchrisbra
authored andcommitted
patch 9.2.0695: Solaris: test_delete_temp_dir() fails because of missing flock
Problem: Solaris: test_delete_temp_dir() fails because of missing flock Solution: Skip the test (Vladimír Marek) Test_delete_temp_dir() assumes Vim can detect when its cached private temp directory has been deleted, which depends on flock/dirfd support. Solaris does not provide flock(), so Vim keeps using the cached temp directory path after the directory has been deleted. Skip the test there. closes: #20567 Signed-off-by: Vladimír Marek <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 9ae6b8c commit 8b4ccb5

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/testdir/test_vimscript.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7734,6 +7734,9 @@ func Test_delete_temp_dir()
77347734
" assumes Unix has always flock/dirfd support
77357735
CheckUnix
77367736
CheckNotMac
7737+
if has('sun')
7738+
throw 'Skipped: Solaris Vim does not detect deleted tempdir without flock()'
7739+
endif
77377740
let a = tempname()
77387741
let dir = fnamemodify(a, ':h')
77397742
call delete(dir, 'rf')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,8 @@ static char *(features[]) =
759759

760760
static int included_patches[] =
761761
{ /* Add new patch number below this line */
762+
/**/
763+
695,
762764
/**/
763765
694,
764766
/**/

0 commit comments

Comments
 (0)