* unit tests:
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Wed, 17 Jan 2007 11:02:30 +0000 (11:02 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Wed, 17 Jan 2007 11:02:30 +0000 (11:02 +0000)
  - fix compile warnings

pmo-trunk-r656

tests/Makefile.am
tests/check_modest-conf.c
tests/check_modest-presets.c
tests/check_text-utils.c
tests/check_update-account.c

index 5b62ec7..813d483 100644 (file)
@@ -13,12 +13,10 @@ TESTS                   =                           \
                         check_folder-xfer           \
                        check_text-utils            \
                        check_modest-conf           \
-                        check_update-account        \
                        check_account-mgr           
 
 noinst_PROGRAMS=                                   \
                        check_folder-xfer           \
-                       check_update-account        \
                        check_modest-conf           \
                        check_text-utils            \
                        check_modest-presets        \
@@ -52,6 +50,7 @@ objects=\
         ${top_srcdir}/src/modest-mail-operation-queue.o \
         ${top_srcdir}/src/modest-mail-operation.o \
         ${top_srcdir}/src/modest-tny-msg-actions.o \
+        ${top_srcdir}/src/modest-local-folder-info.o \
         ${top_srcdir}/src/modest-tny-folder.o \
         ${top_srcdir}/src/modest-text-utils.o
 
index c97762a..0cba48d 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <check.h>
 #include <modest-conf.h>
-
+#include <string.h>
 
 START_TEST (test_modest_conf_new)
 {
index 67bc763..fd6ba8e 100644 (file)
@@ -54,7 +54,7 @@ START_TEST (test_modest_presets_get_providers)
 {
        ModestPresets *presets;
        gchar **providers;
-       int len, i;
+       int len;
        
        presets = modest_presets_new ("provider-data-test.keyfile");
        fail_unless (presets != NULL,
index 408ab90..e60fdeb 100644 (file)
@@ -707,6 +707,8 @@ START_TEST (test_convert_to_html_regular)
        gchar *html_end = NULL;
        gchar *html = NULL;
        gint bytes;
+       int i;
+
        const StringPair tests[] = {
                { "This is some text.", 
                  "<tt>This is some text.</tt>" },
index 48ccd39..31a60d9 100644 (file)
@@ -49,7 +49,6 @@ GMainLoop *main_loop;
 static void
 on_progress_changed (ModestMailOperation *mail_op, gpointer user_data)
 {
-       ModestMailOperationStatus status;
        ModestMailOperationQueue *queue = NULL;
 
        g_print ("Refreshed %d of %d\n", 
@@ -114,7 +113,7 @@ main (int argc, char **argv)
        g_thread_init(NULL);
 
        main_loop = g_main_loop_new (NULL, FALSE);
-        id = g_timeout_add(1000, func, main_loop);
+        id = g_timeout_add(10, func, main_loop);
 
        g_main_loop_run(main_loop);