tests: avoid spurious failures with Solaris 9 cscope program
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 1 Jun 2012 10:37:41 +0000 (12:37 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 1 Jun 2012 10:37:41 +0000 (12:37 +0200)
* t/cscope.tap: Also check that the cscope program in use supports the
'-q' option; if this is not the case, some cscope usages in the generated
Makefiles would fail, so we must skip the checks involving those usages.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/cscope.tap

index c39feed..dbc4993 100755 (executable)
@@ -65,8 +65,9 @@ $ACLOCAL || fatal_ "aclocal failed"
 $AUTOCONF || fatal_ "autoconf failed"
 $AUTOMAKE -i -a || fatal_ "automake -i -a failed"
 
-# Sun cscope is interactive without redirection.
-if cscope --version </dev/null; then
+# Sun cscope is interactive without redirection; also, it might not
+# support the '-q' option, which is required by our generated recipes.
+if cscope -q --version </dev/null; then
   have_cscope=yes
 else
   have_cscope=no
@@ -99,7 +100,7 @@ test_cscope ()
   if test $have_cscope = no; then
     # For later tests.
     touch cscope.files cscope.out cscope.in.out cscope.po.out
-    skip_row_ 3 -r "no cscope program avaiable"
+    skip_row_ 3 -r "no proper cscope program available"
     return 0
   fi