aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/functional/legacy/packadd_spec.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/legacy/packadd_spec.lua b/test/functional/legacy/packadd_spec.lua
index ca6e1a7b4c..609f825177 100644
--- a/test/functional/legacy/packadd_spec.lua
+++ b/test/functional/legacy/packadd_spec.lua
@@ -70,9 +70,10 @@ describe('packadd', function()
call assert_match(Escape(s:plugdir) . '\($\|,\)', &rtp)
let new_after = match(&rtp, Escape(expand(s:plugdir . '/after') . ','))
- let old_after = match(&rtp, ',' . Escape(first_after_entry) . '\>')
+ let forwarded = substitute(first_after_entry, '\\', '[/\\\\]', 'g')
+ let old_after = match(&rtp, ',' . escape(forwarded, '~') . '\>')
call assert_true(new_after > 0, 'rtp is ' . &rtp)
- call assert_true(old_after > 0, 'rtp is ' . &rtp)
+ call assert_true(old_after > 0, 'match ' . forwarded . ' in ' . &rtp)
call assert_true(new_after < old_after, 'rtp is ' . &rtp)
" NOTE: '/.../opt/myte' forwardly matches with '/.../opt/mytest'