From 61f5774fa9b6694ae8760926497a60242b74ffdd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Wed, 14 Sep 2016 21:43:52 +0000 Subject: [PATCH] -rps test: try to close file in case of failure --- src/rps/test_rps.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index 629b73d44..4b4dfc8ba 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c @@ -399,12 +399,19 @@ tofile_ (const char *file_name, const char *line) "Unable to write to file! (Size: %lu, size2: %lu)\n", size, size2); + if (GNUNET_YES != GNUNET_DISK_file_close (f)) + { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Unable to close file\n"); + } return; } if (GNUNET_YES != GNUNET_DISK_file_close (f)) + { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Unable to close file\n"); + } } /** -- 2.25.1