changeset 402:ec4c395aadb8

Fix some tests.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 07 Mar 2016 09:29:53 +0200
parents 5a2ad6e49bfb
children 2c83111b0703
files tests.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests.c	Thu Mar 03 14:44:43 2016 +0200
+++ b/tests.c	Mon Mar 07 09:29:53 2016 +0200
@@ -385,7 +385,7 @@
             for (i3 = 0; i3 < NCOUNT(i_types); i3++)
             for (i2 = 0; i2 < NCOUNT(i_fmts); i2++)
             {
-                snprintf(buf2, sizeof(buf2), "%s%sll%s", i_mods[i4], i_fmts[i2], i_types[i3]);
+                snprintf(buf2, sizeof(buf2), "%%%s%sll%s", i_mods[i4], i_fmts[i2], i_types[i3]);
                 test_snprintf(buf, buf2, i_vals64[i1]);
             }
         }
@@ -428,7 +428,7 @@
 
     if (test_set_start("printf() pointers"))
     {
-        char *p_fmts[] = { "%p", "%8p", "%32p", "%032p", "%-32p", "%-032p", "%16.8p", "%016.8p" };
+        char *p_fmts[] = { "%p", "%2p", "%.2p", "%8p", "%32p", "%032p", "%-32p", "%-032p", "%16.8p", "%016.8p" };
         void *p_vals[] = { NULL, (void *) 1, &p_fmts, };
 
         for (i1 = 0; i1 < NCOUNT(p_vals); i1++)