summaryrefslogtreecommitdiff
path: root/src/rps/rps-test_util.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-11-28 10:53:00 +0100
committerJulius Bünger <buenger@mytum.de>2018-11-28 10:55:38 +0100
commit79c72a89102dac1c91f209234e87b8fe8968b74a (patch)
treeced39460284e8908896c581490f5d0baf1e9b14b /src/rps/rps-test_util.c
parenta309a5adf0b1b2c02a664c3684ec216fb57d02b5 (diff)
RPS test/profiler: Check success of opening file
Diffstat (limited to 'src/rps/rps-test_util.c')
-rw-r--r--src/rps/rps-test_util.c7
1 files changed, 7 insertions, 0 deletions
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,