This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tests for --help
* H.J. Lu wrote on Fri, Apr 10, 2009 at 03:15:00AM CEST:
> This caused:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39710
Thanks for the report. OK to apply this fix?
Cheers,
Ralf
gcc/testsuite/ChangeLog:
2009-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR testsuite/39710
* gcc.misc-tests/help.exp: Do not test for string that may not
be printed with --enable-checking=assert.
Index: gcc/testsuite/gcc.misc-tests/help.exp
===================================================================
--- gcc/testsuite/gcc.misc-tests/help.exp (revision 145851)
+++ gcc/testsuite/gcc.misc-tests/help.exp (working copy)
@@ -44,7 +44,9 @@
check_for_options c "--help=C" "-ansi" "-gnatO" ""
check_for_options c {--help=C++} {-std=c\+\+} "-gnatO" ""
check_for_options c "--help=common" "-dumpbase" "-gnatO" ""
-check_for_options c "--help=undocumented" "This switch lacks documentation" "" ""
+# Do not check for "This switch lacks documentation" here, because
+# ENABLE_CHECKING may turn that off.
+check_for_options c "--help=undocumented" "" "" ""
# Undocumented flags are not yet consistently marked as such.
check_for_options c "--help=^undocumented" "-Wall" "This switch lacks documentation" "xfail"