From 786befce766c5e4d9fc6f6e8292570dade734e65 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Wed, 1 Sep 2010 22:24:37 +0200 Subject: [PATCH] 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. Signed-off-by: Ralf Wildenhues --- ChangeLog | 5 +++++ tests/pic_flag.at | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 344ba664..63d4b742 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-09-01 Ralf Wildenhues + 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 diff --git a/tests/pic_flag.at b/tests/pic_flag.at index ffad8427..fb39f7fa 100644 --- a/tests/pic_flag.at +++ b/tests/pic_flag.at @@ -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