view modules/mbsnrtowcs-tests @ 16497:3843e07f6df5

remainder-ieee: Work around test failure on OSF/1. * m4/remainder-ieee.m4: New file. * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is present, test whether remainder works with a zero second argument. Replace it if not. * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER. * modules/math (Makefile.am): Substitute REPLACE_REMAINDER. * modules/remainder (configure.ac): Consider REPLACE_REMAINDER. (Depends-on): Update dependencies. * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4. (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE. * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
author Bruno Haible <bruno@clisp.org>
date Mon, 27 Feb 2012 18:07:29 +0100
parents 413f5a66c55a
children
line wrap: on
line source

Files:
tests/test-mbsnrtowcs1.sh
tests/test-mbsnrtowcs2.sh
tests/test-mbsnrtowcs3.sh
tests/test-mbsnrtowcs4.sh
tests/test-mbsnrtowcs.c
tests/signature.h
tests/macros.h
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-zh.m4
m4/codeset.m4

Depends-on:
mbrtowc
mbsinit
wctob
setlocale

configure.ac:
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gt_LOCALE_JA
gt_LOCALE_ZH_CN

Makefile.am:
TESTS += test-mbsnrtowcs1.sh test-mbsnrtowcs2.sh test-mbsnrtowcs3.sh test-mbsnrtowcs4.sh
TESTS_ENVIRONMENT += \
  LOCALE_FR='@LOCALE_FR@' \
  LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
  LOCALE_JA='@LOCALE_JA@' \
  LOCALE_ZH_CN='@LOCALE_ZH_CN@'
check_PROGRAMS += test-mbsnrtowcs