From 06943df8ee140218f1e43324602139ae1973c58d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 10 Dec 2010 15:07:24 -0500 Subject: Tests for atan(3) and atanh(3). --- test/README | 10 ++++++---- test/atan.c | 15 +++++++++++++++ test/atanh.c | 15 +++++++++++++++ test/regress.chk | 8 +++++++- 4 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 test/atan.c create mode 100644 test/atanh.c (limited to 'test') diff --git a/test/README b/test/README index 989d61c..1c0d9cb 100644 --- a/test/README +++ b/test/README @@ -5,9 +5,11 @@ Many of these examples are takem from the Single Unix Standard's list of section 2 and 3 entry points. I don't explicitly test anything in SuS with a structure- or pointer-to-structure type argument; that will fail as it should on any modern compiler because the struct is neither -defined nor the derived pointer type forward-declared with a stup. +defined nor the derived pointer type forward-declared with a stup. I +also ignore any header that declares only macros. -SuS things excluded by this criterion: +SuS things excluded by these criteria: -aio.h - aio_* entry points for asynchronous input and output -time.h - asctime() and asctime_r() +aio.h - aio_* entry points for asynchronous input and output +time.h - asctime() and asctime_r() +assert.h - assert() macro diff --git a/test/atan.c b/test/atan.c new file mode 100644 index 0000000..56c2dc8 --- /dev/null +++ b/test/atan.c @@ -0,0 +1,15 @@ +/* atan() requires */ + +/* + * Items: atan( + * Requires: + * Standardized-By: SuS + * Not-Detected-by: gcc-4.4.3 + Linux + */ + +#include + +main(int arg, char **argv) +{ + atan(-23.0); +} diff --git a/test/atanh.c b/test/atanh.c new file mode 100644 index 0000000..8adca10 --- /dev/null +++ b/test/atanh.c @@ -0,0 +1,15 @@ +/* atanh() requires */ + +/* + * Items: atanh( + * Requires: + * Standardized-By: SuS + * Not-Detected-by: gcc-4.4.3 + Linux + */ + +#include + +main(int arg, char **argv) +{ + atanh(-23.0); +} diff --git a/test/regress.chk b/test/regress.chk index 5c12e5d..f11645e 100644 --- a/test/regress.chk +++ b/test/regress.chk @@ -15,8 +15,12 @@ deheader: test/alarm.c includes deheader: test/acos.c has requires from acos\s*\( deheader: test/acos.c includes deheader: test/abort.c includes +deheader: test/atanh.c has requires from atanh\s*\( +deheader: test/atanh.c includes deheader: test/acosh.c has requires from acosh\s*\( deheader: test/acosh.c includes +deheader: test/atan.c has requires from atan\s*\( +deheader: test/atan.c includes deheader: test/asin.c includes deheader: test/advance.c has requires from advance\s*\( deheader: test/advance.c includes @@ -32,6 +36,7 @@ deheader: test/duplicate.c without succeeded. deheader: remove from test/duplicate.c deheader: remove from test/duplicate.c deheader: in test/access.c, retaining required '#include \n' +deheader: in test/atan.c, retaining required '#include \n' deheader: in test/acosh.c, retaining required '#include \n' deheader: in test/a64l.c, retaining required '#include \n' deheader: test/abort.c without succeeded. @@ -41,6 +46,7 @@ deheader: remove from test/asinh.c deheader: in test/umask.c, retaining required '#include \n' deheader: in test/umask.c, retaining required '#include \n' deheader: in test/acos.c, retaining required '#include \n' +deheader: in test/atanh.c, retaining required '#include \n' deheader: test/alarm.c without succeeded. deheader: remove from test/alarm.c -deheader: saw 14 files, 15 includes, 8 removed +deheader: saw 16 files, 17 includes, 8 removed -- cgit v1.2.3-70-g09d2