Revision a7d4dbc1c1e7ecba508354d12ff49fa9ee850bf1

nosnilmot at pidgin.im nosnilmot at pidgin.im
Sat Mar 24 15:54:09 EDT 2007


o   -----------------------------------------------------------------
|   Revision: a7d4dbc1c1e7ecba508354d12ff49fa9ee850bf1
|   Ancestor: 7e51706af11c5ec6acfcdfcc9a812cf5b5035a53
|   Author: nosnilmot at pidgin.im
|   Date: 2007-03-24T19:51:48
|   Branch: im.pidgin.pidgin
|   
|   Modified files:
|           libpurple/tests/check_libpurple.c
|           libpurple/tests/test_cipher.c
|           libpurple/tests/test_jabber_jutil.c
|           libpurple/tests/test_util.c libpurple/tests/tests.h
|   
|   ChangeLog: 
|   
|   Fix compiler warnings and errors in tests resulting from using DEBUG_CFLAGS
|   
|   
|   ============================================================
|   --- libpurple/tests/check_libpurple.c	c82c38b918622a39ad078b3e370be12a7449db9f
|   +++ libpurple/tests/check_libpurple.c	e7af0b4865391aa5ff735e8c350fd460948bccd2
|   @@ -1,8 +1,9 @@
|    #include <glib.h>
|    #include <stdlib.h>
|    
|    #include "../core.h"
|    #include "../eventloop.h"
|   +#include "../util.h"
|    
|    #include "tests.h"
|    
|   @@ -22,6 +23,7 @@ static PurpleEventLoopUiOps eventloop_ui
|    	(guint (*)(guint))g_source_remove,
|    	purple_check_input_add,
|    	(guint (*)(guint))g_source_remove,
|   +	NULL
|    };
|    
|    static void
|   ============================================================
|   --- libpurple/tests/test_cipher.c	463d700802effbd67f6c69d453a9afe8fac1e739
|   +++ libpurple/tests/test_cipher.c	0a3d78d2fddd57887934cc6c76e0a11c6179beca
|   @@ -5,6 +5,8 @@
|    
|    #undef HAVE_DBUS
|    
|   +#include "tests.h"
|   +
|    #include "../cipher.h"
|    #include "../signal.h"
|    
|   @@ -15,7 +17,6 @@
|    	PurpleCipher *cipher = NULL; \
|    	PurpleCipherContext *context = NULL; \
|    	gchar cdigest[33]; \
|   -	gchar *sdigest = NULL; \
|    	gboolean ret = FALSE; \
|    	\
|    	cipher = purple_ciphers_find_cipher("md4"); \
|   @@ -79,7 +80,6 @@ END_TEST
|    	PurpleCipher *cipher = NULL; \
|    	PurpleCipherContext *context = NULL; \
|    	gchar cdigest[33]; \
|   -	gchar *sdigest = NULL; \
|    	gboolean ret = FALSE; \
|    	\
|    	cipher = purple_ciphers_find_cipher("md5"); \
|   @@ -142,7 +142,6 @@ END_TEST
|    	PurpleCipher *cipher = NULL; \
|    	PurpleCipherContext *context = NULL; \
|    	gchar cdigest[41]; \
|   -	gchar *sdigest = NULL; \
|    	gboolean ret = FALSE; \
|    	\
|    	cipher = purple_ciphers_find_cipher("sha1"); \
|   @@ -198,7 +197,7 @@ cipher_suite(void) {
|    cipher_suite(void) {
|    	Suite *s = suite_create("Cipher Suite");
|    	TCase *tc = NULL;
|   -	
|   +
|    	/* md4 tests */
|    	tc = tcase_create("MD4");
|    	tcase_add_test(tc, test_md4_empty_string);
|   ============================================================
|   --- libpurple/tests/test_jabber_jutil.c	ab405155a462da744d2ced991505933a1c14e18a
|   +++ libpurple/tests/test_jabber_jutil.c	6c3369e8e2c067337c81ecfcdfd592b0f6051499
|   @@ -1,3 +1,5 @@
|   +#include <string.h>
|   +
|    #include "tests.h"
|    #include "../protocols/jabber/jutil.h"
|    
|   @@ -29,12 +31,14 @@ START_TEST(test_nodeprep_validate)
|    
|    START_TEST(test_nodeprep_validate)
|    {
|   +	char *longnode;
|   +
|    	fail_unless(jabber_nodeprep_validate(NULL));
|    	fail_unless(jabber_nodeprep_validate("foo"));
|    	fail_unless(jabber_nodeprep_validate("%d"));
|    	fail_unless(jabber_nodeprep_validate("y\\z"));
|    
|   -	char *longnode = g_strnfill(1023, 'a');
|   +	longnode = g_strnfill(1023, 'a');
|    	fail_unless(jabber_nodeprep_validate(longnode));
|    	g_free(longnode);
|    }
|   ============================================================
|   --- libpurple/tests/test_util.c	14c9433139c47c37d5aed3c6a2a02b030c24b85c
|   +++ libpurple/tests/test_util.c	f2c4e35bf2eaced2d1b6e2402d45124690da2673
|   @@ -1,3 +1,5 @@
|   +#include <string.h>
|   +
|    #include "tests.h"
|    #include "../util.h"
|    
|   ============================================================
|   --- libpurple/tests/tests.h	545f4ac49cae4b2be569b0843f855b1fd5e6fee3
|   +++ libpurple/tests/tests.h	54061f54902e97dfb7555de25c3220eb04e718fd
|   @@ -6,6 +6,7 @@
|    
|    /* define the test suites here */
|    /* remember to add the suite to the runner in check_libpurple.c */
|   +Suite * master_suite(void);
|    Suite * cipher_suite(void);
|    Suite * jabber_jutil_suite(void);
|    Suite * util_suite(void);

To get the patch for this revision, please do this:
mtn log --last 1 --diffs --from a7d4dbc1c1e7ecba508354d12ff49fa9ee850bf1


More information about the Commits mailing list