Mercurial > hg > th-libs
changeset 533:ef0d732fabe0
Disable floating point printf implementation tests as the support is not
there.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 28 Dec 2019 13:31:19 +0200 |
parents | ad64c3f7cf64 |
children | 52df4ce8e822 |
files | tests.c th_printf.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests.c Sat Dec 28 13:29:59 2019 +0200 +++ b/tests.c Sat Dec 28 13:31:19 2019 +0200 @@ -624,6 +624,7 @@ } } +#ifdef TH_WIP_FLOAT_SUPPORT if (test_set_start("printf() float")) { double f_vals[] = { 1, 2, 3, 2.02, 612342.234, -2.07, -612342.12, 437692.9876543219, 0x1fff, 0x8000000, 0.15625 }; @@ -636,6 +637,7 @@ test_snprintf(buf, f_fmts[i2], f_vals[i1]); } } +#endif if (test_set_start("printf() string")) {
--- a/th_printf.c Sat Dec 28 13:29:59 2019 +0200 +++ b/th_printf.c Sat Dec 28 13:31:19 2019 +0200 @@ -288,7 +288,7 @@ } -#ifdef WIP_FLOAT_SUPPORT +#ifdef TH_WIP_FLOAT_SUPPORT int th_vprintf_put_float(th_vprintf_ctx *ctx, th_vprintf_putch vputch, va_list ap, int f_flags, int f_width, int f_prec) { @@ -474,7 +474,7 @@ goto out; break; -#ifdef WIP_FLOAT_SUPPORT +#ifdef TH_WIP_FLOAT_SUPPORT case 'f': case 'F': if ((ret = th_vprintf_put_float(ctx, vputch, ap,