aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJason Copenhaver <jcopenha@typedef.org>2015-01-16 16:50:24 -0300
committerdequis <dx@dxzone.com.ar>2015-01-16 16:50:24 -0300
commit25c4c78e2ddad482dfc9d5a104f76325fcc2f8e5 (patch)
tree4b6628d38e54a55b6059948ff8bad6b3c13b719b /tests
parent7549d0074aa4917e62106ac285b05baa1e76c1e9 (diff)
Fix compiler warnings on Cygwin and Mac OS X.
* Don't use PIE/PIC on Cygwin/Darwin unless specified as these platforms don't support it. * Cleanup warnings for 'make check' build. * Fix the type issue for getsockopt calls. * Fix enum warnings in Yahoo libs on Mac OS X.
Diffstat (limited to 'tests')
-rw-r--r--tests/check_arc.c2
-rw-r--r--tests/check_irc.c1
-rw-r--r--tests/check_jabber_sasl.c1
3 files changed, 2 insertions, 2 deletions
diff --git a/tests/check_arc.c b/tests/check_arc.c
index 9d913dcd..e9e7d382 100644
--- a/tests/check_arc.c
+++ b/tests/check_arc.c
@@ -87,6 +87,8 @@ static void check_decod(int l)
len = arc_decode( decrypt_tests[i].crypted, decrypt_tests[i].len,
&decrypted, password );
+ fail_if( len == -1,
+ "`%s' didn't decrypt properly", decrypt_tests[i].decrypted );
fail_if( strcmp( decrypt_tests[i].decrypted, decrypted ) != 0,
"`%s' didn't decrypt properly", decrypt_tests[i].decrypted );
diff --git a/tests/check_irc.c b/tests/check_irc.c
index 66fe0021..a4b9a1e9 100644
--- a/tests/check_irc.c
+++ b/tests/check_irc.c
@@ -27,7 +27,6 @@ END_TEST
START_TEST(test_login)
GIOChannel *ch1, *ch2;
irc_t *irc;
- GError *error = NULL;
char *raw;
fail_unless(g_io_channel_pair(&ch1, &ch2));
diff --git a/tests/check_jabber_sasl.c b/tests/check_jabber_sasl.c
index 63118d39..81fc60aa 100644
--- a/tests/check_jabber_sasl.c
+++ b/tests/check_jabber_sasl.c
@@ -86,7 +86,6 @@ static void check_get_part(int l)
{
tcase_fn_start( get_part_tests[i].key, __FILE__, i );
char *res;
- int len;
res = sasl_get_part( get_part_tests[i].challenge,
get_part_tests[i].key );