patch 7.4.2012
Problem:    Test for getcompletion() does not pass on all systems.
Solution:   Only test what is supported.
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index 30d366b..3482153 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -26,17 +26,24 @@
 endfunc
 
 func Test_getcompletion()
+  if !has('cmdline_compl')
+    return
+  endif
   let groupcount = len(getcompletion('', 'event'))
   call assert_true(groupcount > 0)
   let matchcount = len(getcompletion('File', 'event'))
   call assert_true(matchcount > 0)
   call assert_true(groupcount > matchcount)
 
-  source $VIMRUNTIME/menu.vim
-  let matchcount = len(getcompletion('', 'menu'))
-  call assert_true(matchcount > 0)
-  let matchcount = len(getcompletion('ToolBar.', 'menu'))
-  call assert_true(matchcount > 0)
+  if has('menu')
+    source $VIMRUNTIME/menu.vim
+    let matchcount = len(getcompletion('', 'menu'))
+    call assert_true(matchcount > 0)
+    call assert_equal(['File.'], getcompletion('File', 'menu'))
+    call assert_true(matchcount > 0)
+    let matchcount = len(getcompletion('File.', 'menu'))
+    call assert_true(matchcount > 0)
+  endif
 
   call assert_fails('call getcompletion("", "burp")', 'E475:')
 endfunc
diff --git a/src/version.c b/src/version.c
index 33cfc57..39331b6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2012,
+/**/
     2011,
 /**/
     2010,