Tests for module 'isnanl'.
authorBruno Haible <bruno@clisp.org>
Thu, 22 Mar 2007 02:19:08 +0000 (02:19 +0000)
committerBruno Haible <bruno@clisp.org>
Thu, 22 Mar 2007 02:19:08 +0000 (02:19 +0000)
ChangeLog
modules/isnanl-tests [new file with mode: 0644]
tests/test-isnanl.c [new file with mode: 0644]

index c7c73fd..ac28398 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-03-21  Bruno Haible  <bruno@clisp.org>
 
+       * modules/isnanl-tests: New file.
+       * tests/test-isnanl.c: New file.
+
        * modules/isnanl: New file.
        * lib/isnanl.h: New file.
        * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
diff --git a/modules/isnanl-tests b/modules/isnanl-tests
new file mode 100644 (file)
index 0000000..1098aa3
--- /dev/null
@@ -0,0 +1,16 @@
+Files:
+tests/test-isnanl.c
+tests/test-isnanl.h
+
+Depends-on:
+
+configure.ac:
+gl_LONG_DOUBLE_EXPONENT_LOCATION
+AC_SUBST([ISNANL_LIBM])
+
+Makefile.am:
+TESTS += test-isnanl
+check_PROGRAMS += test-isnanl
+test_isnanl_LDADD = @ISNANL_LIBM@ $(LDADD)
+EXTRA_DIST += test-isnanl.h
+
diff --git a/tests/test-isnanl.c b/tests/test-isnanl.c
new file mode 100644 (file)
index 0000000..818c054
--- /dev/null
@@ -0,0 +1,36 @@
+/* Test of isnanl() substitute.
+   Copyright (C) 2007 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
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2007.  */
+
+#include <config.h>
+
+#if HAVE_LONG_DOUBLE
+
+#include "isnanl.h"
+
+#include "test-isnanl.h"
+
+#else
+
+int
+main ()
+{
+  return 0;
+}
+
+#endif