aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test2.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2000-04-24 03:19:31 +0800
committernobody <nobody@localhost>2000-04-24 03:19:31 +0800
commit6f31d60289f5d3def0cae26fd7ac0afe4d1f95ab (patch)
tree99a4d80d9f1acb9f56cf26e221bf13a312e97890 /tests/test2.c
parent49c2cb5af1a58b24fc08d2ce351307a4cfad96f5 (diff)
downloadgsoc2013-evolution-GNOME_GAMES_1_1_0.tar
gsoc2013-evolution-GNOME_GAMES_1_1_0.tar.gz
gsoc2013-evolution-GNOME_GAMES_1_1_0.tar.bz2
gsoc2013-evolution-GNOME_GAMES_1_1_0.tar.lz
gsoc2013-evolution-GNOME_GAMES_1_1_0.tar.xz
gsoc2013-evolution-GNOME_GAMES_1_1_0.tar.zst
gsoc2013-evolution-GNOME_GAMES_1_1_0.zip
This commit was manufactured by cvs2svn to create tagGNOME_GAMES_1_1_0
'GNOME_GAMES_1_1_0'. svn path=/tags/GNOME_GAMES_1_1_0/; revision=2566
Diffstat (limited to 'tests/test2.c')
-rw-r--r--tests/test2.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/test2.c b/tests/test2.c
deleted file mode 100644
index 510c8304d6..0000000000
--- a/tests/test2.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/* tests mime message file parsing */
-#include "gmime-utils.h"
-#include "stdio.h"
-#include "camel-mime-message.h"
-#include "camel-mime-part.h"
-#include "camel-stream.h"
-#include "camel-stream-fs.h"
-#include "camel.h"
-
-int
-main (int argc, char**argv)
-{
- GHashTable *header_table;
- CamelMimeMessage *message;
- CamelStream *input_stream, *output_stream;
-
- gtk_init (&argc, &argv);
- camel_init ();
-
- message = camel_mime_message_new ();
-
-
- input_stream = camel_stream_fs_new_with_name ("mail.test", CAMEL_STREAM_FS_READ);
- if (!input_stream) {
- perror ("could not open input file\n");
- printf ("You must create the file mail.test before running this test\n");
- exit(2);
- }
-
-
- camel_data_wrapper_set_input_stream ( CAMEL_DATA_WRAPPER (message), input_stream);
-
- camel_medium_get_content_object (CAMEL_MEDIUM (message));
-
-#if 0
- camel_stream_close (input_stream);
- gtk_object_unref (GTK_OBJECT (input_stream));
-
- output_stream = camel_stream_fs_new_with_name ("mail2.test", CAMEL_STREAM_FS_WRITE);
- camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), output_stream);
- camel_stream_close (output_stream);
- gtk_object_unref (GTK_OBJECT (output_stream));
-
- //gtk_object_unref (GTK_OBJECT (message));
-#endif
- return 0;
-
-}