From: Andreas Jaeger Date: Fri, 8 Jul 2011 17:16:26 +0000 (-0400) Subject: Add test case strtod underflow X-Git-Tag: glibc-2.15~476 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04d08991c4612450880eb55a1d3070597429b7cb;p=thirdparty%2Fglibc.git Add test case strtod underflow --- diff --git a/ChangeLog b/ChangeLog index 050bff3499c..d47995ba80c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-07-05 Andreas Jaeger + + [BZ#9696] + * stdlib/tst-strtod.c: Add testcase. + 2011-07-07 Ulrich Drepper * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function. diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c index c30eb1ee12b..1cb9a5cb0eb 100644 --- a/stdlib/tst-strtod.c +++ b/stdlib/tst-strtod.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,1996-2001,2003,2009 Free Software Foundation, Inc. +/* Copyright (C) 1991,1996-2001,2003,2009,2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -72,6 +72,7 @@ static const struct ltest tests[] = { "+InFiNiTy", HUGE_VAL, '\0', 0 }, #endif { "0x80000Ap-23", 0x80000Ap-23, '\0', 0 }, + { "1e-324", 0, '\0', ERANGE }, { NULL, 0, '\0', 0 } };