Module Name: src
Committed By: christos
Date: Sat Jul 10 07:50:33 UTC 2021
Modified Files:
src/tests/lib/libc/stdio: t_fmemopen.c
Log Message:
add more info to ease future debugging.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/stdio/t_fmemopen.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_fmemopen.c
diff -u src/tests/lib/libc/stdio/t_fmemopen.c:1.4 src/tests/lib/libc/stdio/t_fmemopen.c:1.5
--- src/tests/lib/libc/stdio/t_fmemopen.c:1.4 Sat Oct 19 13:45:00 2013
+++ src/tests/lib/libc/stdio/t_fmemopen.c Sat Jul 10 03:50:33 2021
@@ -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 @@ ATF_TC_BODY(test19, tc)
/* 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 */