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 add more info to ease future debugging.



details:   https://anonhg.NetBSD.org/src/rev/a2d1fb7b5451
branches:  trunk
changeset: 1022224:a2d1fb7b5451
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 10 07:50:33 2021 +0000

description:
add more info to ease future debugging.

diffstat:

 tests/lib/libc/stdio/t_fmemopen.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 446bde3174e9 -r a2d1fb7b5451 tests/lib/libc/stdio/t_fmemopen.c
--- a/tests/lib/libc/stdio/t_fmemopen.c Sat Jul 10 07:50:20 2021 +0000
+++ b/tests/lib/libc/stdio/t_fmemopen.c Sat Jul 10 07:50:33 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fmemopen.c,v 1.4 2013/10/19 17:45:00 christos Exp $ */
+/* $NetBSD: t_fmemopen.c,v 1.5 2021/07/10 07:50:33 christos Exp $ */
 
 /*-
  * Copyright (c)2010 Takehiko NOZAKI,
@@ -964,7 +964,8 @@
 
 /* don't accept non nul character at end of buffer */
                        ATF_CHECK(fputc(0x1, fp) == EOF);
-                       ATF_CHECK(ftello(fp) == (off_t)t->n);
+                       ATF_CHECK_MSG(ftello(fp) == (off_t)t->n,
+                               "%td != %td", ftello(fp), (off_t)t->n);
                        ATF_CHECK(feof(fp) == 0);
 
 /* accept nul character at end of buffer */



Home | Main Index | Thread Index | Old Index