[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20-fyi-test-failed-warnings.patch
From: |
Akim Demaille |
Subject: |
20-fyi-test-failed-warnings.patch |
Date: |
Wed, 15 Aug 2001 09:52:01 +0200 |
It's been too long a time since the package last distcheck'd.
Index: ChangeLog
from Akim Demaille <address@hidden>
* bin/autom4te.in (@m4_warning): New.
(&handle_m4): Use it.
* tests/m4sugar.at (m4_warn): Pass `-f' to autom4te to ensure the
warnings are issued at each run.
* tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): M4sugar
is in the src tree.
Index: bin/autom4te.in
--- bin/autom4te.in Tue, 14 Aug 2001 01:47:02 +0200 akim
+++ bin/autom4te.in Tue, 14 Aug 2001 11:53:21 +0200 akim
@@ -254,6 +254,9 @@ sub load
my @preselect = ('include', 'm4_pattern_allow', 'm4_pattern_forbid');
my $output = '-';
+
+# Autom4te's default warnings, and the actual list of warnings.
+my @my_warning = ('syntax');
my @warning;
# M4 include path.
@@ -516,7 +519,8 @@ sub handle_m4 ($@)
# 2. $WARNINGS, $3 command line options, in that order.
# Set them in the order expected by the M4 macros: the converse.
my $m4_warnings =
- lc join (',', reverse (split (',', ($ENV{'WARNINGS'} || '')),
+ lc join (',', reverse (@my_warning,
+ split (',', ($ENV{'WARNINGS'} || '')),
map { split /,/ } @warning));
# GNU m4 appends when using --error-output.
Index: tests/atspecific.m4
--- tests/atspecific.m4 Tue, 14 Aug 2001 11:44:55 +0200 akim
+++ tests/atspecific.m4 Tue, 14 Aug 2001 11:58:14 +0200 akim
@@ -28,7 +28,7 @@
# ----------------------------------------------------------
m4_define([AT_CHECK_M4SUGAR],
[AT_CLEANUP_FILES([script.4s script autom4te.cache])dnl
-AT_CHECK([autom4te -I ../lib m4sugar/m4sugar.m4 script.s4g -o script $1],
+AT_CHECK([autom4te -I $top_srcdir/lib m4sugar/m4sugar.m4 script.s4g -o script
$1],
m4_default([$2], [0]), [$3], [$4])])
@@ -36,7 +36,7 @@ m4_define([AT_CHECK_M4SUGAR],
# -------------------------------------------------------
m4_define([AT_CHECK_M4SH],
[AT_CLEANUP_FILES([script.as script autom4te.cache])dnl
-AT_CHECK([autom4te -I ../lib m4sugar/m4sh.m4 script.as -o script $1],
+AT_CHECK([autom4te -I $top_srcdir/lib m4sugar/m4sh.m4 script.as -o script $1],
m4_default([$2], [0]), [$3], [$4])])
Index: tests/m4sugar.at
--- tests/m4sugar.at Tue, 14 Aug 2001 01:47:02 +0200 akim
+++ tests/m4sugar.at Tue, 14 Aug 2001 11:46:19 +0200 akim
@@ -38,6 +38,9 @@
# commas are not swallowed. This can easily happen because of
# m4-listification.
+# FIXME: For the time being we use -f to make sure we do issue the
+# warnings. But maybe autom4te should handle that by itself?
+
AT_DATA([script.s4g],
[[m4_warn([foo], [foo])
m4_warn([bar], [bar])
@@ -48,17 +51,17 @@
[script.s4g:3: warning: syntax
])
-AT_CHECK_M4SUGAR([-o- -Wall], 0, [],
+AT_CHECK_M4SUGAR([-o- -Wall -f], 0, [],
[script.s4g:1: warning: foo
script.s4g:2: warning: bar
script.s4g:3: warning: syntax
])
-AT_CHECK_M4SUGAR([-o- -Wnone,bar], 0, [],
+AT_CHECK_M4SUGAR([-o- -Wnone,bar -f], 0, [],
[script.s4g:2: warning: bar
])
-AT_CHECK_M4SUGAR([-o- -Wnone,bar,error], 1, [],
+AT_CHECK_M4SUGAR([-o- -Wnone,bar,error -f], 1, [],
[script.s4g:2: error: bar
script.s4g:2: the top level
])
Index: tests/Makefile.am
--- tests/Makefile.am Sun, 05 Aug 2001 22:21:13 +0200 akim
+++ tests/Makefile.am Tue, 14 Aug 2001 12:18:02 +0200 akim
@@ -97,7 +97,7 @@ actypes.at: mktests.sh $(MACRO_FILES)
expr \
libtool ltconfig ltmain.sh
-DISTCLEANFILES = atconfig testsuite
+DISTCLEANFILES = atconfig testsuite testsuite.log
## ------------------ ##
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 20-fyi-test-failed-warnings.patch,
Akim Demaille <=