瀏覽代碼

tests/perfmodels/value_nan.c: delete temporary file

Nathalie Furmento 11 年之前
父節點
當前提交
7667e0b20a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/perfmodels/value_nan.c

+ 2 - 0
tests/perfmodels/value_nan.c

@@ -17,6 +17,7 @@
 #include <config.h>
 #include <core/perfmodel/perfmodel.h>
 #include "../helper.h"
+#include <unistd.h>
 
 #ifdef STARPU_HAVE_WINDOWS
 #include <io.h>
@@ -67,6 +68,7 @@ int _check_number(double val, int checknan)
 	int x = _starpu_read_double(f, "%lf", &lat);
 	int y = fscanf(f, "%s", str);
 	fclose(f);
+	unlink(filename);
 
 	/* check that what has been read is identical to what has been written */
 	int pass;