summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldo Bastian <waldo.bastian@intel.com>2006-06-25 22:50:21 +0000
committerWaldo Bastian <waldo.bastian@intel.com>2006-06-25 22:50:21 +0000
commiteded5eec600dfee3278520370db40e1fad6b2a04 (patch)
treec32c305f6d029f1f90f2fd060a964ad15008c28b
parente9acbe23923d2de9a94b2642d9fb105e65729c79 (diff)
-Werror fix from Dirk Mueller
-rw-r--r--tests/test_mailto.c3
-rw-r--r--tests/test_remotefile.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_mailto.c b/tests/test_mailto.c
index 646410e..3c54e27 100644
--- a/tests/test_mailto.c
+++ b/tests/test_mailto.c
@@ -15,7 +15,8 @@ int main()
fprintf( stderr, "Cannot connect!\n" );
return 1;
}
- system( "touch /tmp/mailtotest.txt" );
+ if(system( "touch /tmp/mailtotest.txt" ))
+ return perror("system()"), 1;
attachments.count = 1;
attachments.data = attachments_data;
ok = dapi_MailTo_Window( conn, "Test mail", "Hi,\n\nthis is a test mail.\n",
diff --git a/tests/test_remotefile.c b/tests/test_remotefile.c
index 36eb492..303e32b 100644
--- a/tests/test_remotefile.c
+++ b/tests/test_remotefile.c
@@ -29,7 +29,8 @@ int main()
printf( "Temporary2: %s\n", ok ? "Ok" : "Failed" );
free( local );
}
- system( "touch /tmp/remotefiletest.txt" );
+ if(system( "touch /tmp/remotefiletest.txt" ))
+ return perror("system()"), 1;
/* local temporary will be ignored */
local = dapi_LocalFile_Window( conn, "file:///tmp/remotefiletest.txt", "/tmp/remotefiletest2.txt", 1, 0 );
printf( "Local file3: %s\n", local != NULL ? local : "Failed" );