]> sourceware.org Git - automake.git/commitdiff
Fix for PR automake/149 and werror.test:
authorTom Tromey <tromey@redhat.com>
Wed, 9 May 2001 00:23:57 +0000 (00:23 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 9 May 2001 00:23:57 +0000 (00:23 +0000)
* automake.in (require_file_internal): Use am_line_warning or
am_conf_line_warning when suppressing error.
(am_line_warning): New sub.
(am_conf_line_warning): Save and restore warning signal.
* tests/Makefile.am (XFAIL_TESTS): Removed werror.test.

ChangeLog
automake.in
tests/Makefile.am
tests/Makefile.in

index ab6886c296d7814857264e62335b860dd01eb007..8adede909469a78725cd85a67bc5f62c9e0c5263 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2001-05-08  Tom Tromey  <tromey@redhat.com>
 
+       Fix for PR automake/149 and werror.test:
+       * automake.in (require_file_internal): Use am_line_warning or
+       am_conf_line_warning when suppressing error.
+       (am_line_warning): New sub.
+       (am_conf_line_warning): Save and restore warning signal.
+       * tests/Makefile.am (XFAIL_TESTS): Removed werror.test.
+
        Fix for PR automake/36:
        * tests/Makefile.am (TESTS): Added asm.test.
        * tests/asm.test: New file.
index 91b1215569dc789010ea242ebaadd98dcb866bde..7524fc42750e67bd21f18c009ace2ac0aa45cac2 100755 (executable)
@@ -7665,18 +7665,32 @@ sub require_file_internal
                                               $file, $errfile);
                }
 
-               my $save = $exit_status;
-               if ($is_configure)
+               if ($suppress)
                {
-                   # FIXME: allow actual file to be specified.
-                   &am_conf_line_error ($configure_ac, $line,
-                                        "$message$trailer");
+                   if ($is_configure)
+                   {
+                       # FIXME: allow actual file to be specified.
+                       &am_conf_line_warning ($configure_ac, $line,
+                                              "$message$trailer");
+                   }
+                   else
+                   {
+                       &am_line_warning ($line, "$message$trailer");
+                   }
                }
                else
                {
-                   &am_line_error ($line, "$message$trailer");
+                   if ($is_configure)
+                   {
+                       # FIXME: allow actual file to be specified.
+                       &am_conf_line_error ($configure_ac, $line,
+                                            "$message$trailer");
+                   }
+                   else
+                   {
+                       &am_line_error ($line, "$message$trailer");
+                   }
                }
-               $exit_status = $save if $suppress;
            }
        }
     }
@@ -7846,7 +7860,6 @@ sub am_error
     $exit_status = 1;
 }
 
-
 # am_file_error ($FILE, @ARGS)
 # ----------------------------
 sub am_file_error
@@ -7924,8 +7937,22 @@ sub am_conf_line_error
 sub am_conf_line_warning
 {
     my $saved_exit_status = $exit_status;
+    my $sig = $SIG{'__WARN__'};
+    $SIG{'__WARN__'} = 'DEFAULT';
     &am_conf_line_error (@_);
     $exit_status = $saved_exit_status;
+    $SIG{'__WARN__'} = $sig;
+}
+
+# Like am_line_error, but doesn't affect exit status.
+sub am_line_warning
+{
+    my $saved_exit_status = $exit_status;
+    my $sig = $SIG{'__WARN__'};
+    $SIG{'__WARN__'} = 'DEFAULT';
+    &am_line_warning (@_);
+    $exit_status = $saved_exit_status;
+    $SIG{'__WARN__'} = $sig;
 }
 
 # Tell user where our aclocal.m4 is, but only once.
index 881d77bca1bc80e5622316c3f8e5fb511c034347..ab886ad1c9e48311eece50177cae8a776a8e5c52 100644 (file)
@@ -2,8 +2,7 @@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = subobj2.test yaccvpath.test texinfo10.test subdir5.test \
-werror.test
+XFAIL_TESTS = subobj2.test yaccvpath.test texinfo10.test subdir5.test
 
 TESTS =        \
 acinclude.test \
index dc5e675b148b8ade1f20a62d456047e3ad6317f0..bdb453e88d7223b7fcf82db94e1e2f795b505262 100644 (file)
@@ -74,9 +74,7 @@ install_sh = @install_sh@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = subobj2.test yaccvpath.test texinfo10.test subdir5.test \
-werror.test
-
+XFAIL_TESTS = subobj2.test yaccvpath.test texinfo10.test subdir5.test
 
 TESTS = \
 acinclude.test \
This page took 0.071599 seconds and 5 git commands to generate.