aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-79c72a89102dac1c91f209234e87b8fe8968b74a.tar.gz
gnunet-79c72a89102dac1c91f209234e87b8fe8968b74a.zip
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)
92 GNUNET_DISK_PERM_USER_READ | 92 GNUNET_DISK_PERM_USER_READ |
93 GNUNET_DISK_PERM_USER_WRITE | 93 GNUNET_DISK_PERM_USER_WRITE |
94 GNUNET_DISK_PERM_GROUP_READ); 94 GNUNET_DISK_PERM_GROUP_READ);
95 if (NULL == fh)
96 {
97 LOG (GNUNET_ERROR_TYPE_ERROR,
98 "Openning file `%s' failed.\n",
99 name);
100 GNUNET_assert (0);
101 }
95 GNUNET_CONTAINER_multihashmap_put (open_files, 102 GNUNET_CONTAINER_multihashmap_put (open_files,
96 &hash, 103 &hash,
97 fh, 104 fh,