Module Name: src
Committed By: christos
Date: Wed Jan 11 18:05:54 UTC 2017
Modified Files:
src/tests/lib/libc/string: t_memcpy.c
Log Message:
PR/51823: Ngie Cooper: Add output diagnostic if memcmp of the md5 string fails
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/string/t_memcpy.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/string/t_memcpy.c
diff -u src/tests/lib/libc/string/t_memcpy.c:1.5 src/tests/lib/libc/string/t_memcpy.c:1.6
--- src/tests/lib/libc/string/t_memcpy.c:1.5 Sat Mar 16 22:23:31 2013
+++ src/tests/lib/libc/string/t_memcpy.c Wed Jan 11 13:05:54 2017
@@ -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 @@ ATF_TC_BODY(memcpy_basic, tc)
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);