summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumitra <agarwalsoumitra1504@gmail.com>2015-10-09 11:02:07 +0530
committerEniz Vukovic <eniz_vukovic@hotmail.com>2015-10-23 22:54:22 +0200
commit21b45b8b741cb407cacb477c2f301abdc0215b7a (patch)
tree6e19ed9e227879874f690ccb799f251d98336c30
parente7804c626840c7d8478244bc64c7b491aa3c21b5 (diff)
Added ommited words in comment
-rw-r--r--auto_tests/messenger_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c
index 2a813c9b..ad5d40ae 100644
--- a/auto_tests/messenger_test.c
+++ b/auto_tests/messenger_test.c
@@ -135,7 +135,7 @@ START_TEST(test_m_addfriend)
135 if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, really_bad_len) != FAERR_TOOLONG) 135 if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, really_bad_len) != FAERR_TOOLONG)
136 ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", really_bad_len); 136 ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", really_bad_len);
137*/ 137*/
138/* this will error if the original m_addfriend_norequest() failed */ 138/* this will give an error if the original m_addfriend_norequest() failed */
139/* if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, good_len) != FAERR_ALREADYSENT) 139/* if(m_addfriend(m, (uint8_t *)friend_id, (uint8_t *)good_data, good_len) != FAERR_ALREADYSENT)
140 ck_abort_msg("m_addfriend did NOT catch adding a friend we already have.\n" 140 ck_abort_msg("m_addfriend did NOT catch adding a friend we already have.\n"
141 "(this can be caused by the error of m_addfriend_norequest in" 141 "(this can be caused by the error of m_addfriend_norequest in"
@@ -144,7 +144,7 @@ START_TEST(test_m_addfriend)
144 if(m_addfriend(m, (uint8_t *)good_id_b, (uint8_t *)bad_data, bad_len) != FAERR_NOMESSAGE) 144 if(m_addfriend(m, (uint8_t *)good_id_b, (uint8_t *)bad_data, bad_len) != FAERR_NOMESSAGE)
145 ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", bad_len); 145 ck_abort_msg("m_addfriend did NOT catch the following length: %d\n", bad_len);
146*/ 146*/
147/* this should REALLY error */ 147/* this should REALLY give an error */
148/* 148/*
149 * TODO: validate client_id in m_addfriend? 149 * TODO: validate client_id in m_addfriend?
150if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0) 150if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0)