aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test13.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test13.c')
-rw-r--r--tests/test13.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test13.c b/tests/test13.c
index a1978e7fb0..371b09c6fd 100644
--- a/tests/test13.c
+++ b/tests/test13.c
@@ -96,7 +96,7 @@ main (int argc, char**argv)
message = camel_mime_message_new ();
- input_stream = camel_stream_fs_new_with_name ("mail.test", O_RDONLY, 0600);
+ input_stream = camel_stream_fs_new_with_name ("mail.test", O_RDONLY, 0);
if (!input_stream) {
perror ("could not open input file\n");
printf ("You must create the file mail.test before running this test\n");
@@ -114,7 +114,7 @@ main (int argc, char**argv)
camel_stream_close (input_stream);
gtk_object_unref (GTK_OBJECT (input_stream));
- output_stream = camel_stream_fs_new_with_name ("mail2.test", O_WRONLY, 0600);
+ output_stream = camel_stream_fs_new_with_name ("mail2.test", O_WRONLY|O_CREAT|O_TRUNC, 0600);
camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), output_stream);
camel_stream_close (output_stream);
gtk_object_unref (GTK_OBJECT (output_stream));