annotate modules/tsearch-tests @ 40231:9b3c79fdfe0b

strtod: fix clash with strtold Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817). * lib/strtod.c (compute_minus_zero, minus_zero): Simplify by remving the macro / external variable, and having just a function. User changed. This avoids the need for an external variable that might clash.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 11 Mar 2019 16:40:29 -0700
parents bee77692eea2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8534
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Files:
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 tests/test-tsearch.sh
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 tests/test-tsearch.c
12493
86e3c4113c60 Reorder file list.
Bruno Haible <bruno@clisp.org>
parents: 12489
diff changeset
4 tests/signature.h
18933
bee77692eea2 argp, tsearch tests: Fix file list.
Bruno Haible <bruno@clisp.org>
parents: 13578
diff changeset
5 tests/macros.h
8534
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 Depends-on:
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 stdint
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 configure.ac:
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 TEST_TSEARCH_LIBM=
13578
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
12 AC_LINK_IFELSE(
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
13 [AC_LANG_PROGRAM(
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
14 [[#ifndef __NO_MATH_INLINES
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
15 # define __NO_MATH_INLINES 1 /* for glibc */
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
16 #endif
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
17 #include <math.h>
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
18 double x;]],
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
19 [[x = log (x);]])],
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
20 [],
1e26f884665f Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
21 [TEST_TSEARCH_LIBM=-lm])
8534
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 AC_SUBST([TEST_TSEARCH_LIBM])
12166
d943ffe46edc use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
Jim Meyering <meyering@redhat.com>
parents: 9943
diff changeset
23 AC_CHECK_FUNCS_ONCE([initstate])
8534
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 Makefile.am:
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 TESTS += test-tsearch.sh
342c23c60847 Tests for module 'tsearch'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 check_PROGRAMS += test-tsearch
8698
ae4587be462b Fix --with-tests compilation on cygwin.
Eric Blake <ebb9@byu.net>
parents: 8534
diff changeset
28 test_tsearch_LDADD = $(LDADD) @TEST_TSEARCH_LIBM@