]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: avoid spurious pic_flag test failure on HP-UX 10.20.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 1 Sep 2010 20:24:37 +0000 (22:24 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 1 Sep 2010 20:24:37 +0000 (22:24 +0200)
* tests/pic_flag.at (override pic_flag at configure time):
Match HP-UX 10.20 cc warning about unknown options, to skip
the test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/pic_flag.at

index 344ba6643f948a6d5fc5ac21a358a86d05f66bbd..63d4b742b953f0c60fc16e86f31c49bff6c018a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-09-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       tests: avoid spurious pic_flag test failure on HP-UX 10.20.
+       * tests/pic_flag.at (override pic_flag at configure time):
+       Match HP-UX 10.20 cc warning about unknown options, to skip
+       the test.
+
        tests: fix localization test for GCC on HP-UX 11.00.
        * tests/localization.at (localized compiler messages): Be sure
        to switch the locale only for the actual compiler commands, so
index ffad8427730e061415fed4f17087ab9ed34c6f31..fb39f7fafc4714a0a1e06d282144081e450c4f25 100644 (file)
@@ -37,6 +37,7 @@ AT_CHECK([$CC $CPPFLAGS $CFLAGS $C_pic_flag -c foo.c || exit 77],
         [], [stdout], [stderr])
 # The configure test for the PIC flag also checks for warnings.
 AT_CHECK([grep fpic stdout stderr && exit 77], [1])
+AT_CHECK([[grep '[uU]nknown.*option' stdout stderr && exit 77]], [1])
 
 CXX_pic_flag='-fpic -DPIC'
 if $CXX $CPPFLAGS $CXXFLAGS $CXX_pic_flag -c foo.cpp; then :; else