From: Bruno Haible Date: Fri, 21 Jul 2006 12:23:33 +0000 (+0000) Subject: Skip tests on glibc-2.2 systems, which don't have LC_ALL_MASK. X-Git-Tag: v0.15~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28e753958744aa9a4218cef019cad95a8a27a9b9;p=thirdparty%2Fgettext.git Skip tests on glibc-2.2 systems, which don't have LC_ALL_MASK. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 67ca5ff9d..f029d539c 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -2,6 +2,13 @@ * gettext-0.15 released. +2006-07-21 Bruno Haible + + * gettext-6-prg.c: Enable the test only for glibc >= 2.3. + * gettext-7-prg.c: Likewise. + * gettext-6: Update. + * gettext-7: Likewise. + 2006-07-14 Bruno Haible * Makefile.am (MOSTLYCLEANFILES): New variable. diff --git a/gettext-tools/tests/gettext-6 b/gettext-tools/tests/gettext-6 index dd56c62df..fd17c6e1b 100755 --- a/gettext-tools/tests/gettext-6 +++ b/gettext-tools/tests/gettext-6 @@ -50,7 +50,14 @@ beaut EOF tmpfiles="$tmpfiles gt-6.out" -./gettext-6-prg > gt-6.out || exit 1 +./gettext-6-prg > gt-6.out +case $? in + 0) ;; + 77) + echo "Skipping test: not a glibc 2.3 system" + rm -fr $tmpfiles; exit 77 + ;; +esac : ${DIFF=diff} ${DIFF} gt-6.ok gt-6.out || exit 1 diff --git a/gettext-tools/tests/gettext-6-prg.c b/gettext-tools/tests/gettext-6-prg.c index d59a16dad..95961dd77 100644 --- a/gettext-tools/tests/gettext-6-prg.c +++ b/gettext-tools/tests/gettext-6-prg.c @@ -1,5 +1,5 @@ /* Test program, used by the gettext-6 test. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ #include #include -#if USE_POSIX_THREADS && (__GLIBC__ >= 2) +#if USE_POSIX_THREADS && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) #include #include "setenv.h" diff --git a/gettext-tools/tests/gettext-7 b/gettext-tools/tests/gettext-7 index 598ee8c9a..3dc716c34 100755 --- a/gettext-tools/tests/gettext-7 +++ b/gettext-tools/tests/gettext-7 @@ -40,7 +40,14 @@ test -d de_DE/LC_MESSAGES || mkdir de_DE/LC_MESSAGES ${MSGFMT} -o de_DE/LC_MESSAGES/tstthread.mo ${top_srcdir}/tests/gettext-7.po tmpfiles="$tmpfiles gt-7.out" -./gettext-7-prg > gt-7.out || exit 1 +./gettext-7-prg > gt-7.out +case $? in + 0) ;; + 77) + echo "Skipping test: not a glibc 2.3 system" + rm -fr $tmpfiles; exit 77 + ;; +esac rm -fr $tmpfiles diff --git a/gettext-tools/tests/gettext-7-prg.c b/gettext-tools/tests/gettext-7-prg.c index 81325c312..3b04d5cf0 100644 --- a/gettext-tools/tests/gettext-7-prg.c +++ b/gettext-tools/tests/gettext-7-prg.c @@ -1,5 +1,5 @@ /* Test program, used by the gettext-7 test. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ #include #include -#if USE_POSIX_THREADS && (__GLIBC__ >= 2) +#if USE_POSIX_THREADS && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) #include #include "setenv.h"