Permalink
Browse files

only test juggler-restore-mappings in vim >= 7.3.32

  • Loading branch information...
1 parent 3081a60 commit be5d3e1db8c32188dde5c6127eb404291865c0ff @sjbach committed Oct 2, 2011
Showing with 11 additions and 3 deletions.
  1. +5 −0 tests/juggler-restore-mappings/precondition.vim
  2. +6 −3 tests/run-tests.bash
@@ -0,0 +1,5 @@
+if v:version > 703 || (v:version == 703 && has("patch32"))
+ quit
+else
+ cquit
+endif
View
@@ -39,9 +39,12 @@ fi
for dir in $test_dirs; do
cd $dir
- if ! expect -f expect; then
- echo "fail: $dir"
- failures="$failures $dir"
+ if ! [ -f precondition.vim ] || \
+ $VIM -X -N --noplugin -u precondition.vim >/dev/null 2>&1 ; then
+ if ! expect -f expect; then
+ echo "fail: $dir"
+ failures="$failures $dir"
+ fi
fi
cd ..
done >/dev/null

0 comments on commit be5d3e1

Please sign in to comment.