From ac61ca33187ca451bb01d733b472a027003e72b7 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 8 May 2010 02:25:50 +0200 Subject: Improve tests link*.test (enable `set -e'). * tests/link_c_cxx.test: Enable `errexit shell flag, and related changes. Also, do not create useless source files. * tests/link_dist.test: Likewise. * tests/link_f90_only.test: Likewise. * tests/link_f_only.test: Likewise. * tests/link_fc.test: Likewise. * tests/link_fccxx.test: Likewise. * tests/link_fcxx.test: Likewise. Signed-off-by: Ralf Wildenhues --- tests/link_f90_only.test | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/link_f90_only.test') diff --git a/tests/link_f90_only.test b/tests/link_f90_only.test index eeec3a682..979eb673d 100755 --- a/tests/link_f90_only.test +++ b/tests/link_f90_only.test @@ -1,5 +1,6 @@ #! /bin/sh -# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1998, 1999, 2001, 2002, 2010 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 @@ -19,6 +20,8 @@ . ./defs || Exit 1 +set -e + cat >> configure.in << 'END' AC_PROG_FC END @@ -28,17 +31,14 @@ bin_PROGRAMS = lavalamp lavalamp_SOURCES = lamp.f90 END -: > lamp.f90 - -$ACLOCAL || Exit 1 -$AUTOMAKE || Exit 1 - +$ACLOCAL +$AUTOMAKE # We should only see the Fortran linker in the rules of `Makefile.in'. # Look for this macro not at the beginning of any line; that will have # to be good enough for now. -grep '.\$(FCLINK)' Makefile.in || Exit 1 +grep '.\$(FCLINK)' Makefile.in # We should not see these patterns: grep '.\$(CXXLINK)' Makefile.in && Exit 1 -- cgit v1.2.1