Fixed test.

This commit is contained in:
irungentoo 2013-08-31 12:28:15 -04:00
parent 9ef4bab51d
commit 0181fd95ae

View File

@ -174,7 +174,7 @@ START_TEST(test_getself_name)
setname(m, (uint8_t *)nickname, len); setname(m, (uint8_t *)nickname, len);
getself_name(m, (uint8_t *)nick_check, len); getself_name(m, (uint8_t *)nick_check, len);
ck_assert_msg((!STRINGS_EQUAL(nickname, nick_check)), ck_assert_msg((memcmp(nickname, nick_check, len) != 0),
"getself_name failed to return the known name!\n" "getself_name failed to return the known name!\n"
"known name: %s\nreturned: %s\n", nickname, nick_check); "known name: %s\nreturned: %s\n", nickname, nick_check);
} }