]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
vala tests: fix spurious failures with older valac (<= 0.7.2)
authorBruno Haible <bruno@clisp.org>
Mon, 26 Mar 2012 12:44:05 +0000 (14:44 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 26 Mar 2012 12:49:27 +0000 (14:49 +0200)
See automake bug#11093.

The Vala compiler before the 0.7.3 release does not support the
'--profile' option.  But some of our tests were relying on it, so
skip those tests if the detected Vala compiler is too old.

* tests/vala-vpath.test, tests/vala-mix.test, tests/vala-mix2.test
(configure.in): Require vala version >= 0.7.3 in AM_PROG_VALAC call.

Co-authored-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
tests/vala-mix.test
tests/vala-mix2.test
tests/vala-vpath.test

index 73a07d93b67cd8f29c6672e6458c352a1733c834..012b36ad03a53f12f4457a5037f7ae2926a7d130 100755 (executable)
@@ -24,7 +24,7 @@ set -e
 cat >> configure.in <<'END'
 AC_PROG_CC
 AM_PROG_CC_C_O
-AM_PROG_VALAC
+AM_PROG_VALAC([0.7.3])
 AC_OUTPUT
 END
 
index 88d2818888083273c48ada72e7cc95d962a8ec0d..298f88d60a7d03c2bec64b78c97c80c094468d31 100755 (executable)
@@ -25,7 +25,7 @@ set -e
 cat >> configure.in <<'END'
 AC_PROG_CC
 AC_PROG_CXX
-AM_PROG_VALAC
+AM_PROG_VALAC([0.7.3])
 AC_OUTPUT
 END
 
index 8f2b6774a8d9189f6c3ad915e0fbcb58a5e7ab9b..311eb3a065104529ace959dacdf64c61cbe288a5 100755 (executable)
@@ -25,7 +25,7 @@ set -e
 cat >> configure.in << 'END'
 AC_CONFIG_SRCDIR([hello.vala])
 AC_PROG_CC
-AM_PROG_VALAC([0.7])
+AM_PROG_VALAC([0.7.3])
 AC_OUTPUT
 END