From: Julius Bünger Date: Wed, 28 Nov 2018 09:53:00 +0000 (+0100) Subject: RPS test/profiler: Check success of opening file X-Git-Tag: v0.11.0~198 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=79c72a89102dac1c91f209234e87b8fe8968b74a;p=oweals%2Fgnunet.git RPS test/profiler: Check success of opening file --- diff --git a/src/rps/rps-test_util.c b/src/rps/rps-test_util.c index d0d195229..4383c7149 100644 --- a/src/rps/rps-test_util.c +++ b/src/rps/rps-test_util.c @@ -92,6 +92,13 @@ get_file_handle (const char *name) GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE | GNUNET_DISK_PERM_GROUP_READ); + if (NULL == fh) + { + LOG (GNUNET_ERROR_TYPE_ERROR, + "Openning file `%s' failed.\n", + name); + GNUNET_assert (0); + } GNUNET_CONTAINER_multihashmap_put (open_files, &hash, fh,