aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test7.c2
-rw-r--r--tests/ui-tests/store_listing.c20
2 files changed, 12 insertions, 10 deletions
diff --git a/tests/test7.c b/tests/test7.c
index aaf256f64b..6b2494aa0e 100644
--- a/tests/test7.c
+++ b/tests/test7.c
@@ -18,5 +18,7 @@ main (int argc, char**argv)
new_provider = camel_provider_register_as_module ("../camel/providers/MH/.libs/libcamelmh.so");
+
+
}
diff --git a/tests/ui-tests/store_listing.c b/tests/ui-tests/store_listing.c
index 2f73921ad6..a9f1d875cd 100644
--- a/tests/ui-tests/store_listing.c
+++ b/tests/ui-tests/store_listing.c
@@ -16,6 +16,8 @@
#include "camel.h"
static GladeXML *xml;
+static CamelSession *_session;
+
static void add_mail_store (const gchar *store_url);
static void show_folder_messages (CamelFolder *folder);
@@ -88,9 +90,7 @@ show_folder_messages (CamelFolder *folder)
current_row = gtk_clist_append (GTK_CLIST (message_clist), clist_row_text);
gtk_clist_set_row_data_full (GTK_CLIST (message_clist), current_row, (gpointer)message, message_destroy_notify);
}
- for (i=0; i<10; i++)
- gtk_clist_append (GTK_CLIST (message_clist), clist_row_text);
-
+
}
@@ -112,12 +112,10 @@ add_mail_store (const gchar *store_url)
CamelFolder *new_folder;
- /* normally the store type is found automatically
- with the URL, this is not implemented for
- the moment */
- store = gtk_type_new (CAMEL_MH_STORE_TYPE);
- camel_store_init (store, (CamelSession *)NULL, g_strdup (store_url));
-
+
+ store = camel_session_get_store (_session, store_url);
+ if (!store) return;
+
//store_list = g_list_append (store_list, (gpointer)store);
mailbox_and_store_tree = glade_xml_get_widget (xml, "store-and-mailbox-tree");
new_tree_text[0] = g_strdup (store_url);
@@ -216,7 +214,9 @@ main(int argc, char *argv[])
camel_init ();
xml = glade_xml_new ("store_listing.glade", NULL);
if (xml) glade_xml_signal_autoconnect (xml);
-
+
+ _session = camel_session_new ();
+ camel_provider_register_as_module ("../../camel/providers/MH/.libs/libcamelmh.so");
gtk_main ();
LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV. - Add an option helper for LIBS. - Adjust all ports that already use LIBS. Also remove references to PTHREAD_CFLAGS and PTHREAD_LIBS while here. - Some ports did not support having a LIBS environment variable and required additional patches. Somewhat simplified a linker command line looks like: ${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS} where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and LIBS can be controlled by us. If possible -L and -l flags need to be added to LIBS to make sure they appear after any -L and -l flags set by upstream. Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this may appear too early on the command line causing installed libraries to be linked in instead of freshly built ones. Additional changes: benchmarks/netio: Replace WITH_IPV6 with an IPV6 option. comms/gnokii: Replace some patches with USES=pathfix. Also remove -fPIC. graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR. graphics/visionworkbench: Remove FreeBSD 7 support. multimedia/libmovtar: New LIB_DEPENDS syntax. multimedia/opencinematools: Use standard do-build. net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins) net-mgmt/nagios: Remove -fPIC. net-mgmt/nagios4: Remove -fPIC. print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036. security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS. This skips a test in configure that falsely detects pthread_mutexattr_init in our libc. sysutils/dar: Fix iconv detection. x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD hack and use $CXX as linker as on other platforms. PR: 190592 Exp-run by: antoine Approved by: portmgr (antoine) * - USE_BZIP2 -> USES=tar:bzip2ohauer2014-03-161-2/+1 | * - fix staged package buildingohauer2014-03-162-3/+8 | | | | Noted by antoine@ * - add stage supportohauer2014-03-09