From: Nathan S. Evans Date: Thu, 24 Jun 2010 11:13:52 +0000 (+0000) Subject: remove config file for churn, not removing directory specified in config file. May... X-Git-Tag: initial-import-from-subversion-38251~21243 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f587381bc6a8bfa4194436c89e0ec8822426ccbc;p=oweals%2Fgnunet.git remove config file for churn, not removing directory specified in config file. May be a problem, unless the assumption is that test cases create/remove their own directories in which testing runs --- diff --git a/src/testing/testing.c b/src/testing/testing.c index 92eefa76e..61c97975c 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -958,7 +958,10 @@ GNUNET_TESTING_daemon_stop (struct GNUNET_TESTING_Daemon *d, GNUNET_CONFIGURATION_destroy (d->cfg); if (delete_files == GNUNET_YES) { - UNLINK(d->cfgfile); + if (0 != UNLINK(d->cfgfile)) + { + GNUNET_log_strerror(GNUNET_ERROR_TYPE_WARNING, "unlink"); + } } GNUNET_free (d->cfgfile); GNUNET_free_non_null (d->hostname);