Browse Source

forget to add / on the file name

Corentin Salingue 11 years ago
parent
commit
79729b1023
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/disk/disk_compute.c

+ 2 - 2
tests/disk/disk_compute.c

@@ -48,11 +48,11 @@ int main(int argc, char **argv)
 	char * base = "/tmp";
 	char * base = "/tmp";
 
 
 	char * name_file_start = malloc(128*sizeof(char));
 	char * name_file_start = malloc(128*sizeof(char));
-	strcpy(name_file_start, "STARPU_DISK_COMPUTE_DATA_");
+	strcpy(name_file_start, "/STARPU_DISK_COMPUTE_DATA_");
 	strcat(name_file_start, pid_str);
 	strcat(name_file_start, pid_str);
 
 
 	char * name_file_end = malloc(128*sizeof(char));
 	char * name_file_end = malloc(128*sizeof(char));
-	strcpy(name_file_end, "STARPU_DISK_COMPUTE_DATA_RESULT_");
+	strcpy(name_file_end, "/STARPU_DISK_COMPUTE_DATA_RESULT_");
 	strcat(name_file_end, pid_str);
 	strcat(name_file_end, pid_str);
 
 
 	char * path_file_start = malloc(128*sizeof(char));
 	char * path_file_start = malloc(128*sizeof(char));