diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-18 10:19:35 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-18 10:19:35 -0400 |
commit | 558a80f1c38dd4a9099102b5e1f54b7cbd209a33 (patch) | |
tree | 79a4548b39f59b6834e4729aa67e60f7f8658cd6 /auto_tests/messenger_test.c | |
parent | 3aaa144b90a50caf69fcd8a982739cf852ad47c2 (diff) | |
parent | af12267c77c406547f06c75fca4b8c3cbefdec72 (diff) |
Merge branch 'tox-bugs' of https://github.com/stqism/ToxCore into stqism-tox-bugs
Diffstat (limited to 'auto_tests/messenger_test.c')
-rw-r--r-- | auto_tests/messenger_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c index 3ca89152..9de69409 100644 --- a/auto_tests/messenger_test.c +++ b/auto_tests/messenger_test.c | |||
@@ -88,12 +88,12 @@ START_TEST(test_m_set_userstatus) | |||
88 | uint16_t bad_length = REALLY_BIG_NUMBER; | 88 | uint16_t bad_length = REALLY_BIG_NUMBER; |
89 | 89 | ||
90 | ck_assert_msg((m_set_statusmessage(m, (uint8_t *)status, bad_length) == -1), | 90 | ck_assert_msg((m_set_statusmessage(m, (uint8_t *)status, bad_length) == -1), |
91 | "m_set_userstatus did NOT catch the following length: %d\n", | 91 | "m_set_userstatus did NOT catch the following length: %d\n", |
92 | REALLY_BIG_NUMBER); | 92 | REALLY_BIG_NUMBER); |
93 | 93 | ||
94 | ck_assert_msg((m_set_statusmessage(m, (uint8_t *)status, good_length) == 0), | 94 | ck_assert_msg((m_set_statusmessage(m, (uint8_t *)status, good_length) == 0), |
95 | "m_set_userstatus did NOT return 0 on the following length: %d\n" | 95 | "m_set_userstatus did NOT return 0 on the following length: %d\n" |
96 | "MAX_STATUSMESSAGE_LENGTH: %d\n", good_length, MAX_STATUSMESSAGE_LENGTH); | 96 | "MAX_STATUSMESSAGE_LENGTH: %d\n", good_length, MAX_STATUSMESSAGE_LENGTH); |
97 | } | 97 | } |
98 | END_TEST | 98 | END_TEST |
99 | 99 | ||
@@ -157,10 +157,10 @@ START_TEST(test_setname) | |||
157 | int bad_length = REALLY_BIG_NUMBER; | 157 | int bad_length = REALLY_BIG_NUMBER; |
158 | 158 | ||
159 | ck_assert_msg((setname(m, (uint8_t *)good_name, bad_length) == -1), | 159 | ck_assert_msg((setname(m, (uint8_t *)good_name, bad_length) == -1), |
160 | "setname() did NOT error on %d as a length argument!\n", bad_length); | 160 | "setname() did NOT error on %d as a length argument!\n", bad_length); |
161 | 161 | ||
162 | ck_assert_msg((setname(m, (uint8_t *)good_name, good_length) == 0), | 162 | ck_assert_msg((setname(m, (uint8_t *)good_name, good_length) == 0), |
163 | "setname() did NOT return 0 on good arguments!\n"); | 163 | "setname() did NOT return 0 on good arguments!\n"); |
164 | } | 164 | } |
165 | END_TEST | 165 | END_TEST |
166 | 166 | ||