diff options
author | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2016-08-30 11:43:21 +0530 |
---|---|---|
committer | Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> | 2016-10-25 17:05:47 -0200 |
commit | bf5eea32ac456b68ede40ee99031b0cd7726bcdd (patch) | |
tree | 4d3276ac9c5455bf994b7fa7def7ef5e6867070d /stdlib/tst-strtod.h | |
parent | 6962682ffe5e5f0373047a0b894fee7a774be254 (diff) | |
download | glibc-bf5eea32ac456b68ede40ee99031b0cd7726bcdd.tar glibc-bf5eea32ac456b68ede40ee99031b0cd7726bcdd.tar.gz glibc-bf5eea32ac456b68ede40ee99031b0cd7726bcdd.tar.bz2 glibc-bf5eea32ac456b68ede40ee99031b0cd7726bcdd.zip |
Refactor strtod tests
This patch changes strtod* tests to use strfrom* functions.
Diffstat (limited to 'stdlib/tst-strtod.h')
-rw-r--r-- | stdlib/tst-strtod.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/stdlib/tst-strtod.h b/stdlib/tst-strtod.h index 607cf393aa..b8e9cd4a34 100644 --- a/stdlib/tst-strtod.h +++ b/stdlib/tst-strtod.h @@ -23,14 +23,13 @@ /* 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__) /* The arguments to the generated macros are: FSUF - Function suffix FTYPE - float type FTOSTR - float to string func - FTOSTRM - Optional modifier for FTOSTR format LSUF - Literal suffix CSUF - C standardish suffix for many of the math functions */ |