patch 8.1.0272: options test fails if temp var ends in slash
Problem: Options test fails if temp var ends in slash. (Tom Briden)
Solution: Check for optional slash. (closes #3308)
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index 460a569..d8f033e 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -344,7 +344,7 @@
for var in ['$TEMPDIR', '$TMP', '$TEMP']
if exists(var)
let varvalue = substitute(expand(var), '\\', '/', 'g')
- call assert_match(varvalue . '.\*', bskvalue)
+ call assert_match(varvalue . '/\=\*', bskvalue)
endif
endfor
endfunc