aboutsummaryrefslogtreecommitdiff
path: root/src/regex/test_regex_graph_api.c
diff options
context:
space:
mode:
authorMaximilian Szengel <gnunet@maxsz.de>2012-09-10 14:08:44 +0000
committerMaximilian Szengel <gnunet@maxsz.de>2012-09-10 14:08:44 +0000
commit7f718edba992449e5877156ce27ad78745489890 (patch)
tree7ba4bf9cd68feaf6e924dd2d16342827d1bd93a2 /src/regex/test_regex_graph_api.c
parent66482612e5420d19052412d46ce6b41ca3b00868 (diff)
removing temp file in graph test
Diffstat (limited to 'src/regex/test_regex_graph_api.c')
-rw-r--r--src/regex/test_regex_graph_api.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/regex/test_regex_graph_api.c b/src/regex/test_regex_graph_api.c
index 0f1b72b614..9e8e1fb165 100644
--- a/src/regex/test_regex_graph_api.c
+++ b/src/regex/test_regex_graph_api.c
@@ -27,6 +27,8 @@
#include "platform.h"
#include "gnunet_regex_lib.h"
+#define KEEP_FILES 0
+
/**
* Check if 'filename' exists and is not empty.
*
@@ -57,6 +59,11 @@ filecheck (const char *filename)
error++;
}
+ error += fclose (fp);
+
+ if (!KEEP_FILES)
+ unlink (filename);
+
return error;
}