Mercurial > hg > octave-nkf > gnulib-hg
annotate tests/test-fprintf-posix.c @ 15887:89c762414427
New module 'atanf'.
* lib/math.in.h (atanf): New declaration.
* lib/atanf.c: New file.
* m4/atanf.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
* modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
* modules/atanf: New file.
* tests/test-math-c++.cc: Check the declaration of atanf.
* doc/posix-functions/atanf.texi: Mention the new module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 08 Oct 2011 23:55:44 +0200 |
parents | 97fc9a21a8fb |
children | 8250f2777afc |
rev | line source |
---|---|
8395
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Test of POSIX compatible fprintf() function. |
14079
97fc9a21a8fb
maint: update almost all copyright ranges to include 2011
Jim Meyering <meyering@redhat.com>
parents:
12559
diff
changeset
|
2 Copyright (C) 2007-2011 Free Software Foundation, Inc. |
8395
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
8891
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
8395
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 it under the terms of the GNU General Public License as published by |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
8891
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
8891
diff
changeset
|
7 (at your option) any later version. |
8395
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 This program is distributed in the hope that it will be useful, |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 GNU General Public License for more details. |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 You should have received a copy of the GNU General Public License |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
8891
diff
changeset
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
8395
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 /* Written by Bruno Haible <bruno@clisp.org>, 2007. */ |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 |
8891
633babea5f62
Unconditionally include <config.h> in unit tests.
Eric Blake <ebb9@byu.net>
parents:
8754
diff
changeset
|
19 #include <config.h> |
8395
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 #include <stdio.h> |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 |
12489 | 23 #include "signature.h" |
24 SIGNATURE_CHECK (fprintf, int, (FILE *, char const *, ...)); | |
25 | |
8395
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 #include <stdarg.h> |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 #include <stddef.h> |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 #include <stdint.h> |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 #include <string.h> |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 |
12496
a48d3d749ca5
Refactor common macros used in tests.
Bruno Haible <bruno@clisp.org>
parents:
12489
diff
changeset
|
31 #include "macros.h" |
8395
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
33 #include "test-fprintf-posix.h" |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
35 int |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
36 main (int argc, char *argv[]) |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
37 { |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 test_function (fprintf); |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
39 return 0; |
e624b373611c
Tests for module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
40 } |