Skip to content
This repository
Browse code

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

  • Loading branch information...
commit be5d3e1db8c32188dde5c6127eb404291865c0ff 1 parent 3081a60
Stephen Bach authored October 02, 2011
5  tests/juggler-restore-mappings/precondition.vim
... ...
@@ -0,0 +1,5 @@
  1
+if v:version > 703 || (v:version == 703 && has("patch32"))
  2
+	quit
  3
+else
  4
+	cquit
  5
+endif
9  tests/run-tests.bash
@@ -39,9 +39,12 @@ fi
39 39
 
40 40
 for dir in $test_dirs; do
41 41
   cd $dir
42  
-  if ! expect -f expect; then
43  
-    echo "fail: $dir"
44  
-    failures="$failures $dir"
  42
+  if ! [ -f precondition.vim ] || \
  43
+    $VIM -X -N --noplugin -u precondition.vim >/dev/null 2>&1 ; then
  44
+    if ! expect -f expect; then
  45
+      echo "fail: $dir"
  46
+      failures="$failures $dir"
  47
+    fi
45 48
   fi
46 49
   cd ..
47 50
 done >/dev/null

0 notes on commit be5d3e1

Please sign in to comment.
Something went wrong with that request. Please try again.