Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/stdio Fix format strings to properly quote %.



details:   https://anonhg.NetBSD.org/src/rev/6e2eed34307e
branches:  trunk
changeset: 778064:6e2eed34307e
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Mar 15 01:44:44 2012 +0000

description:
Fix format strings to properly quote %.

diffstat:

 tests/lib/libc/stdio/t_printf.c |  4 ++--
 tests/lib/libc/stdio/t_scanf.c  |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r aef2631a4067 -r 6e2eed34307e tests/lib/libc/stdio/t_printf.c
--- a/tests/lib/libc/stdio/t_printf.c   Thu Mar 15 01:44:07 2012 +0000
+++ b/tests/lib/libc/stdio/t_printf.c   Thu Mar 15 01:44:44 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_printf.c,v 1.4 2012/02/26 23:14:26 christos Exp $ */
+/* $NetBSD: t_printf.c,v 1.5 2012/03/15 01:44:44 joerg Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 {
 
        atf_tc_set_md_var(tc, "descr", \
-           "PR lib/32951: %.0f formats (0.0,0.5] to \"0.\"");
+           "PR lib/32951: %%.0f formats (0.0,0.5] to \"0.\"");
 }
 
 ATF_TC_BODY(snprintf_dotzero, tc)
diff -r aef2631a4067 -r 6e2eed34307e tests/lib/libc/stdio/t_scanf.c
--- a/tests/lib/libc/stdio/t_scanf.c    Thu Mar 15 01:44:07 2012 +0000
+++ b/tests/lib/libc/stdio/t_scanf.c    Thu Mar 15 01:44:44 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_scanf.c,v 1.1 2011/07/08 06:38:04 jruoho Exp $ */
+/* $NetBSD: t_scanf.c,v 1.2 2012/03/15 01:44:44 joerg Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
 {
 
        atf_tc_set_md_var(tc, "descr", \
-           "PR lib/21691: %i and %x fail with negative hex numbers");
+           "PR lib/21691: %%i and %%x fail with negative hex numbers");
 }
 
 ATF_TC_BODY(sscanf_neghex, tc)



Home | Main Index | Thread Index | Old Index