소스 검색

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

Cédric Augonnet 15 년 전
부모
커밋
020064d424
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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);