patch 8.1.0853: options test fails on Mac
Problem: Options test fails on Mac.
Solution: Remove a trailing slash from $TMPDIR.
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index 4d2c477..740863e 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -387,8 +387,10 @@
for var in ['$TMPDIR', '$TMP', '$TEMP']
if exists(var)
let varvalue = substitute(expand(var), '\\', '/', 'g')
- let found = (index(bsklist, varvalue.'/*') >= 0)
- call assert_true(found, var . ' not in option bsk: ' . &bsk)
+ let varvalue = substitute(varvalue, '/$', '', '')
+ let varvalue .= '/*'
+ let found = (index(bsklist, varvalue) >= 0)
+ call assert_true(found, var . ' (' . varvalue . ') not in option bsk: ' . &bsk)
endif
endfor
endfunc