Author: ngie
Date: Thu Jun  9 18:11:42 2016
New Revision: 301749
URL: https://svnweb.freebsd.org/changeset/base/301749

Log:
  Add debug output to aid in determining why `goodResult` != `result`
  
  MFC after: 1 week
  PR: 210619 (for diagnosis)
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/contrib/netbsd-tests/lib/libc/string/t_memcpy.c

Modified: head/contrib/netbsd-tests/lib/libc/string/t_memcpy.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/string/t_memcpy.c        Thu Jun  9 
17:26:54 2016        (r301748)
+++ head/contrib/netbsd-tests/lib/libc/string/t_memcpy.c        Thu Jun  9 
18:11:42 2016        (r301749)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to