From: Ulrich Drepper Date: Wed, 23 Jun 1999 12:41:25 +0000 (+0000) Subject: (special): Add test for large ndigit parameter. X-Git-Tag: cvs/glibc_2-1-2~361 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04dd2ec0d38cc7cfc71d0f43197ae5fed74bc8e6;p=thirdparty%2Fglibc.git (special): Add test for large ndigit parameter. --- diff --git a/misc/tst-efgcvt.c b/misc/tst-efgcvt.c index 780dd9a02d0..cfbaa21cb10 100644 --- a/misc/tst-efgcvt.c +++ b/misc/tst-efgcvt.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998 Free Software Foundation, Inc. +/* Copyright (C) 1998, 1999 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 @@ -131,6 +131,10 @@ special (void) if (sign != 0 || strcmp (p, "inf") != 0) output_error ("ecvt", NAN, 10, "inf", 0, 0, p, decpt, sign); + /* Simply make sure these calls with large NDIGITs don't crash. */ + (void) ecvt (123.456, 10000, &decpt, &sign); + (void) fcvt (123.456, 10000, &decpt, &sign); + }