# HG changeset patch # User Matti Hamalainen # Date 1457335793 -7200 # Node ID ec4c395aadb8235433c2de532160b5ee8f48b88e # Parent 5a2ad6e49bfb878e5d99c7b0f2589f181c86c831 Fix some tests. diff -r 5a2ad6e49bfb -r ec4c395aadb8 tests.c --- 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++)