X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f5e8daaa6e9f74521068aa75837200bcd182ea6..00cd576021269f05e84dd36f3cee7afbfe90cede:/src/xbt/xbt_sha.c diff --git a/src/xbt/xbt_sha.c b/src/xbt/xbt_sha.c index 29016d9f2d..de3522fa8a 100644 --- a/src/xbt/xbt_sha.c +++ b/src/xbt/xbt_sha.c @@ -195,16 +195,13 @@ static void test_sha(const char *clear, const char *hashed) char hash[41]; xbt_sha(clear, hash); - xbt_test_add1("==== Test with '%s'", clear); - xbt_test_assert3(!memcmp(hash, hashed, 40), "Wrong sha: %40s!=%40s (%s)", + xbt_test_add("==== Test with '%s'", clear); + xbt_test_assert(!memcmp(hash, hashed, 40), "Wrong sha: %40s!=%40s (%s)", hash, hashed, mycmp(hash, hashed, 40)); } XBT_TEST_SUITE("hash", "Various hash functions"); -XBT_LOG_NEW_DEFAULT_CATEGORY(hash, "Tests of various hash functions "); - - XBT_TEST_UNIT("sha", test_crypto_sha, "Test of the sha algorithm") { /* Empty string as test vector */