diff options
author | ngie <ngie@FreeBSD.org> | 2016-06-09 18:11:42 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-06-09 18:11:42 +0000 |
commit | 53f13a1a099a60e5aea4b82cbbe92c9c39b479cd (patch) | |
tree | fc76a79632b0e6b14594c8ae59cb062b8c0a8f17 /contrib/netbsd-tests | |
parent | fc91d3317b26d8ab576948c95d04ceb84e2395f2 (diff) | |
download | FreeBSD-src-53f13a1a099a60e5aea4b82cbbe92c9c39b479cd.zip FreeBSD-src-53f13a1a099a60e5aea4b82cbbe92c9c39b479cd.tar.gz |
Add debug output to aid in determining why `goodResult` != `result`
MFC after: 1 week
PR: 210619 (for diagnosis)
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/string/t_memcpy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/string/t_memcpy.c b/contrib/netbsd-tests/lib/libc/string/t_memcpy.c index 192a4e8..1d4039a 100644 --- a/contrib/netbsd-tests/lib/libc/string/t_memcpy.c +++ b/contrib/netbsd-tests/lib/libc/string/t_memcpy.c @@ -108,7 +108,12 @@ ATF_TC_BODY(memcpy_basic, tc) if (i != j) runTest(start[i], start[j]); MD5End(mc, result); +#ifdef __NetBSD__ ATF_REQUIRE_EQ(strcmp(result, goodResult), 0); +#else + ATF_REQUIRE_EQ_MSG(strcmp(result, goodResult), 0, "%s != %s", + result, goodResult); +#endif } ATF_TC(memccpy_simple); |