diff options
-rw-r--r-- | src/gns/test_gns_proxy.c | 15 | ||||
-rw-r--r-- | src/util/test_configuration.c | 3 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index 96fe35ede..4cd0a3714 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c | |||
@@ -135,10 +135,19 @@ do_shutdown () | |||
135 | GNUNET_free_non_null (url); | 135 | GNUNET_free_non_null (url); |
136 | 136 | ||
137 | if (NULL != tmp_cfgfile) | 137 | if (NULL != tmp_cfgfile) |
138 | remove (tmp_cfgfile); | 138 | { |
139 | 139 | if (0 != remove (tmp_cfgfile)) | |
140 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "remove", tmp_cfgfile); | ||
141 | GNUNET_free (tmp_cfgfile); | ||
142 | tmp_cfgfile = NULL; | ||
143 | } | ||
140 | if (NULL != proxy_proc) | 144 | if (NULL != proxy_proc) |
141 | GNUNET_OS_process_kill (proxy_proc, 9); | 145 | { |
146 | (void) GNUNET_OS_process_kill (proxy_proc, SIGKILL); | ||
147 | GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (proxy_proc)); | ||
148 | GNUNET_OS_process_destroy (proxy_proc); | ||
149 | proxy_proc = NULL; | ||
150 | } | ||
142 | url = NULL; | 151 | url = NULL; |
143 | } | 152 | } |
144 | 153 | ||
diff --git a/src/util/test_configuration.c b/src/util/test_configuration.c index 1242a5c8d..62ad5fa92 100644 --- a/src/util/test_configuration.c +++ b/src/util/test_configuration.c | |||
@@ -231,7 +231,8 @@ checkDiffs (struct GNUNET_CONFIGURATION_Handle *cfgDefault, int option) | |||
231 | /* Compare the dumped configuration with modifications done */ | 231 | /* Compare the dumped configuration with modifications done */ |
232 | cfg = GNUNET_CONFIGURATION_create (); | 232 | cfg = GNUNET_CONFIGURATION_create (); |
233 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_parse (cfg, diffsFileName)); | 233 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_parse (cfg, diffsFileName)); |
234 | remove (diffsFileName); | 234 | if (0 != remove (diffsFileName)) |
235 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "remove", diffsFileName); | ||
235 | cbData.callBackOption = COMPARE; | 236 | cbData.callBackOption = COMPARE; |
236 | cbData.cfgDiffs = cfgDiffs; | 237 | cbData.cfgDiffs = cfgDiffs; |
237 | GNUNET_CONFIGURATION_iterate (cfg, diffsCallBack, &cbData); | 238 | GNUNET_CONFIGURATION_iterate (cfg, diffsCallBack, &cbData); |