remove bogus patch. atof("Infinity") actually produces zero, and
then no wonder the patch removes further regression tests... this is not needed now that that archs have proper INFINITY and NAN definitions ok phessler@
This commit is contained in:
parent
3967424f7e
commit
1db4805bb9
@ -1,12 +1,12 @@
|
||||
# $OpenBSD: Makefile,v 1.47 2008/07/08 08:38:26 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.48 2008/07/24 10:02:57 martynas Exp $
|
||||
|
||||
COMMENT-main= general-purpose utility library
|
||||
COMMENT-docs= glib2 documentation
|
||||
|
||||
VERSION= 2.16.4
|
||||
DISTNAME= glib-${VERSION}
|
||||
PKGNAME-main= glib2-${VERSION}
|
||||
PKGNAME-docs= glib2-docs-${VERSION}
|
||||
PKGNAME-main= glib2-${VERSION}p0
|
||||
PKGNAME-docs= glib2-docs-${VERSION}p0
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= http://www.gtk.org/
|
||||
|
@ -1,29 +0,0 @@
|
||||
$OpenBSD: patch-tests_strtod-test_c,v 1.2 2007/04/23 16:22:07 jasper Exp $
|
||||
--- tests/strtod-test.c.orig Fri Mar 9 05:01:32 2007
|
||||
+++ tests/strtod-test.c Fri Apr 20 19:02:41 2007
|
||||
@@ -85,14 +85,12 @@ main ()
|
||||
/* Do this before any call to setlocale. */
|
||||
our_nan = atof ("NaN");
|
||||
#endif
|
||||
- g_assert (isnan (our_nan));
|
||||
|
||||
#ifdef INFINITY
|
||||
our_inf = INFINITY;
|
||||
#else
|
||||
our_inf = atof ("Infinity");
|
||||
#endif
|
||||
- g_assert (our_inf > 1 && our_inf == our_inf / 2);
|
||||
|
||||
test_string ("123.123", 123.123, FALSE, 0);
|
||||
test_string ("123.123e2", 123.123e2, FALSE, 0);
|
||||
@@ -105,10 +103,6 @@ main ()
|
||||
test_string ("5,4", 5.0, TRUE, 1);
|
||||
/* the following are for #156421 */
|
||||
test_string ("1e1", 1e1, FALSE, 0);
|
||||
- test_string ("NAN", our_nan, FALSE, 0);
|
||||
- test_string ("-nan", -our_nan, FALSE, 0);
|
||||
- test_string ("INF", our_inf, FALSE, 0);
|
||||
- test_string ("-infinity", -our_inf, FALSE, 0);
|
||||
test_string ("-.75,0", -0.75, TRUE, 4);
|
||||
|
||||
d = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0;
|
Loading…
Reference in New Issue
Block a user