]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix some bugs in the vala-vpath test
authorRyan Lortie <desrt@desrt.ca>
Sat, 7 Jan 2012 06:06:37 +0000 (01:06 -0500)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 8 Jan 2012 11:00:00 +0000 (12:00 +0100)
* tests/vala-vpath.test: There are (trivial) problems in this
testcase that would cause the build to fail even if the core
issue were resolved.  Fix those.

Copyright-paperwork-exempt: yes

tests/vala-vpath.test

index 98e0f4333dc24839108365649a0a1adc91ae9e0d..99e30dba47dd88f72b7243833cd23d18047a7304 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2011 Free Software Foundation, Inc.
+# Copyright (C) 2011, 2012 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,6 @@ required="valac"
 
 set -e
 
-mkdir src
-
 cat >> configure.in << 'END'
 AC_CONFIG_SRCDIR([hello.vala])
 AC_PROG_CC
@@ -31,9 +29,9 @@ AM_PROG_VALAC([0.7])
 AC_OUTPUT
 END
 
-
 cat > Makefile.am <<'END'
 bin_PROGRAMS = foo
+foo_VALAFLAGS = --profile=posix
 foo_SOURCES = hello.vala
 END
 
@@ -41,7 +39,6 @@ cat > hello.vala <<'END'
 void main ()
 {
   stdout.printf ("foo\n");
-  return 0;
 }
 END