[PATCH v4 2/3] Refactor strtod tests

Florian Weimer fw@deneb.enyo.de
Thu Sep 22 20:32:00 GMT 2016


* 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?



More information about the Libc-alpha mailing list