about summary refs log tree commit diff
path: root/stdlib/tst-strtod.h
diff options
context:
space:
mode:
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>2016-08-30 11:43:21 +0530
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2016-10-25 17:05:47 -0200
commitbf5eea32ac456b68ede40ee99031b0cd7726bcdd (patch)
tree4d3276ac9c5455bf994b7fa7def7ef5e6867070d /stdlib/tst-strtod.h
parent6962682ffe5e5f0373047a0b894fee7a774be254 (diff)
downloadglibc-bf5eea32ac456b68ede40ee99031b0cd7726bcdd.tar.gz
glibc-bf5eea32ac456b68ede40ee99031b0cd7726bcdd.tar.xz
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.h7
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
 */