Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/string PR/51823: Ngie Cooper: Add output diag...
details: https://anonhg.NetBSD.org/src/rev/01b2b6fb5e1f
branches: trunk
changeset: 820580:01b2b6fb5e1f
user: christos <christos%NetBSD.org@localhost>
date: Wed Jan 11 18:05:54 2017 +0000
description:
PR/51823: Ngie Cooper: Add output diagnostic if memcmp of the md5 string fails
diffstat:
tests/lib/libc/string/t_memcpy.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 66cbf240634e -r 01b2b6fb5e1f tests/lib/libc/string/t_memcpy.c
--- a/tests/lib/libc/string/t_memcpy.c Wed Jan 11 17:15:27 2017 +0000
+++ b/tests/lib/libc/string/t_memcpy.c Wed Jan 11 18:05:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_memcpy.c,v 1.5 2013/03/17 02:23:31 christos Exp $ */
+/* $NetBSD: t_memcpy.c,v 1.6 2017/01/11 18:05:54 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -96,7 +96,8 @@
if (i != j)
runTest(start[i], start[j]);
MD5End(mc, result);
- ATF_REQUIRE_EQ(strcmp(result, goodResult), 0);
+ ATF_REQUIRE_EQ_MSG(strcmp(result, goodResult), 0, "%s != %s",
+ result, goodResult);
}
ATF_TC(memccpy_simple);
Home |
Main Index |
Thread Index |
Old Index