diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 7 | ||||
-rw-r--r-- | tests/test1.c | 1 | ||||
-rw-r--r-- | tests/test2.c | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index d993cfb288..5e2fd8947c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,9 +4,10 @@ INCLUDES = -I$(top_srcdir)/intl -I$(top_srcdir)/camel \ -I$(includedir) LDADD = \ - $(top_builddir)/camel/libcamel.la \ - $(GNOME_LIBDIR) \ - $(GNOMEUI_LIBS) $(INTLLIBS) + $(top_builddir)/camel/libcamel.la \ + $(GNOME_LIBDIR) \ + $(GNOMEUI_LIBS) $(INTLLIBS) \ + $(BONOBO_LIBS) noinst_PROGRAMS = \ test1 \ diff --git a/tests/test1.c b/tests/test1.c index 28a65ae5c5..9a483d0ca9 100644 --- a/tests/test1.c +++ b/tests/test1.c @@ -1,6 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ #include "camel-mime-message.h" #include "stdio.h" +#include <bonobo/gnome-stream.h> void main (int argc, char**argv) diff --git a/tests/test2.c b/tests/test2.c index dbb2b29ad0..538ae14345 100644 --- a/tests/test2.c +++ b/tests/test2.c @@ -32,7 +32,7 @@ main (int argc, char**argv) FILE *output_file; GHashTable *header_table; CamelMimeMessage *message; - + GnomeStream *stream; @@ -41,6 +41,7 @@ main (int argc, char**argv) message = camel_mime_message_new_with_session( (CamelSession *)NULL); input_file = fopen ("mail.test", "r"); + stream = gnome_stream_fs_open (NULL, "/tmp/a.png", GNOME_Storage_READ); if (!input_file) { perror("could not open input file"); exit(2); |