--- tests/test_mailto.c +++ tests/test_mailto.c @@ -15,7 +15,8 @@ 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", --- tests/test_remotefile.c +++ tests/test_remotefile.c @@ -29,7 +29,8 @@ 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" );