This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v4 2/3] Refactor strtod tests


* Gabriel F. T. Gomes:

>  /* Splat n variants of the same test for the various strtod functions.  */
>  #define GEN_TEST_STRTOD_FOREACH(mfunc, ...)			 \
> -    mfunc (  f,       float, snprintf,  "", f, f, ##__VA_ARGS__) \
> -    mfunc (  d,      double, snprintf,  "",  ,  , ##__VA_ARGS__) \
> -    mfunc ( ld, long double, snprintf, "L", L, l, ##__VA_ARGS__)
> +    mfunc (  f,       float, strfromf, f, f, ##__VA_ARGS__)	 \
> +    mfunc (  d,      double, strfromd,  ,  , ##__VA_ARGS__)	 \
> +    mfunc ( ld, long double, strfroml, L, l, ##__VA_ARGS__)

Will this lose test coverage for snprintf?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]