Module Name:    src
Committed By:   riastradh
Date:           Wed May  8 20:19:37 UTC 2024

Modified Files:
        src/tests/lib/libc/stdio: t_printf.c

Log Message:
tests/lib/libc/stdio/t_printf: Fix %a test the same way.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libc/stdio/t_printf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/stdio/t_printf.c
diff -u src/tests/lib/libc/stdio/t_printf.c:1.12 src/tests/lib/libc/stdio/t_printf.c:1.13
--- src/tests/lib/libc/stdio/t_printf.c:1.12	Wed May  8 20:04:33 2024
+++ src/tests/lib/libc/stdio/t_printf.c	Wed May  8 20:19:37 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: t_printf.c,v 1.12 2024/05/08 20:04:33 riastradh Exp $ */
+/* $NetBSD: t_printf.c,v 1.13 2024/05/08 20:19:37 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -196,7 +196,7 @@ ATF_TC_BODY(snprintf_double_a, tc)
 	ATF_CHECK_MSG((strcmp(buf, "0x1.533p+3") == 0 ||
 		strcmp(buf, "0x2.a66p+2") == 0 ||
 		strcmp(buf, "0x5.4ccp+1") == 0 ||
-		strcmp(buf, "0xa.998p+0") == 0),
+		strcmp(buf, "0xa.99ap+0") == 0),
 	    "buf=%s", buf);
 
 	snprintf(buf, sizeof buf, "%a", (double)0.125);

Reply via email to