Add debug output to aid in determining why goodResult != result

MFC after: 1 week
PR: 210619 (for diagnosis)
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
ngie 2016-06-09 18:11:42 +00:00
parent fc91d3317b
commit 53f13a1a09

View File

@ -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);