aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-29 23:57:47 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-29 23:57:47 +0800
commit68a9dad22b742e3034eea24a57a0e7fad3356201 (patch)
tree852a65e1a2c0ab0a8d507bcdc8bba64bf2765be1 /tests
parente826255bf13255f2b5c626192de4fd10a3885b6f (diff)
downloadgsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.gz
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.bz2
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.lz
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.xz
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.zst
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.zip
text parameter declared const
1999-08-28 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-part.c (camel_mime_part_set_text): text parameter declared const * camel/camel-mime-part-utils.c (camel_mime_part_store_stream_in_buffer): actually test correctly nb_bytes_read_chunk is >0 * camel/gstring-util.c: * camel/gmime-content-field.c: * camel/providers/MH/camel-mh-folder.c: * camel/camel-stream-fs.c: include string.h * camel/camel-stream-mem.c (_write): return the numver of written bytes. * camel/camel-stream-buffered-fs.c (_eos): return sthg * camel/camel-stream.c (default_camel_seek): return something. * Started to work on new recipient code. * fixed various leaks. svn path=/trunk/; revision=1146
Diffstat (limited to 'tests')
-rw-r--r--tests/test1.c3
-rw-r--r--tests/test3.c1
-rw-r--r--tests/test4.c8
-rw-r--r--tests/test7.c2
4 files changed, 8 insertions, 6 deletions
diff --git a/tests/test1.c b/tests/test1.c
index f5e3f164b6..22e9f03234 100644
--- a/tests/test1.c
+++ b/tests/test1.c
@@ -43,7 +43,7 @@ main (int argc, char**argv)
multipart = camel_multipart_new ();
body_part = camel_mime_body_part_new ();
- camel_mime_part_set_text (CAMEL_MIME_PART (body_part), g_strdup ("This is a test.\nThis is only a test.\n"));
+ camel_mime_part_set_text (CAMEL_MIME_PART (body_part), "This is a test.\nThis is only a test.\n");
camel_multipart_add_part (multipart, body_part);
camel_medium_set_content_object (CAMEL_MEDIUM (message), CAMEL_DATA_WRAPPER (multipart));
@@ -62,5 +62,6 @@ main (int argc, char**argv)
gtk_object_unref (GTK_OBJECT (body_part));
printf ("Test1 finished\n");
+ return 1;
}
diff --git a/tests/test3.c b/tests/test3.c
index b036c190f5..9893e2e507 100644
--- a/tests/test3.c
+++ b/tests/test3.c
@@ -24,5 +24,6 @@ main (int argc, char**argv)
printf ("Type found %s\n", gtk_type_name (type) );
printf ("Test3 finished\n");
+ return 1;
}
diff --git a/tests/test4.c b/tests/test4.c
index 1b46f72e65..9c02fc3496 100644
--- a/tests/test4.c
+++ b/tests/test4.c
@@ -36,7 +36,7 @@ main (int argc, char**argv)
printf ("\n------------- Listing root Mh folder subfolders --------\n");
while (mh_subfolders_name) {
- printf ("\t\"%s\"\n", mh_subfolders_name->data);
+ printf ("\t\"%s\"\n", (gchar *)mh_subfolders_name->data);
mh_subfolders_name = mh_subfolders_name->next;
}
printf ("--------------------------------------------------------\n\n");
@@ -44,7 +44,7 @@ main (int argc, char**argv)
inbox_folder = camel_store_get_folder (store, "inbox");
if (!inbox_folder) {
printf ("** Error: could not get inbox folder from store\n");
- return;
+ return 1;
}
/* test existence */
@@ -53,7 +53,7 @@ main (int argc, char**argv)
printf ("MH folder inbox exists, continuing tests\n");
else {
printf ("MH folder inbox does not exist. Stopping \n");
- return;
+ return 1;
}
printf ("\n Inbox folder contains %d messages\n", camel_folder_get_message_count (inbox_folder));
@@ -62,7 +62,7 @@ main (int argc, char**argv)
printf ("--------------------------------------------------------\n\n");
-
+ return 1;
}
diff --git a/tests/test7.c b/tests/test7.c
index 6b2494aa0e..44c73d275b 100644
--- a/tests/test7.c
+++ b/tests/test7.c
@@ -20,5 +20,5 @@ main (int argc, char**argv)
new_provider = camel_provider_register_as_module ("../camel/providers/MH/.libs/libcamelmh.so");
-
+ return 1;
}