Browse Source

add some sanity check to make sure we can generate the trace file

Cédric Augonnet 15 years ago
parent
commit
020064d424
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tools/fxt_tool.c

+ 5 - 0
tools/fxt_tool.c

@@ -73,6 +73,11 @@ static void paje_output_file_init(void)
 {
 	/* create a new file */
 	out_paje_file = fopen(out_paje_path, "w+");
+	if (!out_paje_file)
+	{
+		perror("fopen");
+		STARPU_ABORT();
+	}
 
 	write_paje_header(out_paje_file);