summaryrefslogtreecommitdiff
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)
downloadgnunet-7f718edba992449e5877156ce27ad78745489890.tar.gz
gnunet-7f718edba992449e5877156ce27ad78745489890.zip
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 0f1b72b61..9e8e1fb16 100644
--- a/src/regex/test_regex_graph_api.c
+++ b/src/regex/test_regex_graph_api.c
@@ -27,6 +27,8 @@
27#include "platform.h" 27#include "platform.h"
28#include "gnunet_regex_lib.h" 28#include "gnunet_regex_lib.h"
29 29
30#define KEEP_FILES 0
31
30/** 32/**
31 * Check if 'filename' exists and is not empty. 33 * Check if 'filename' exists and is not empty.
32 * 34 *
@@ -57,6 +59,11 @@ filecheck (const char *filename)
57 error++; 59 error++;
58 } 60 }
59 61
62 error += fclose (fp);
63
64 if (!KEEP_FILES)
65 unlink (filename);
66
60 return error; 67 return error;
61} 68}
62 69