diff options
Diffstat (limited to 'auto_tests')
-rw-r--r-- | auto_tests/messenger_test.c | 4 |
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? |
150 | if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0) | 150 | if(m_addfriend((uint8_t *)bad_id, (uint8_t *)good_data, good_len) >= 0) |