summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_gperf_writer.c
diff options
context:
space:
mode:
authorgithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2021-07-02 18:14:04 (GMT)
committergithub-actions <41898282+github-actions[bot]@users.noreply.github.com>2021-07-02 18:14:04 (GMT)
commitb1e75e7816b6d0fdfa9842156dd6ae5d6d816823 (patch)
tree1b616966207ead4f834c1a202d11680afc6a326e /test/vfd_swmr_gperf_writer.c
parent354c1237a51737b87b4d8a6ce4acb564eb26abcb (diff)
downloadhdf5-b1e75e7816b6d0fdfa9842156dd6ae5d6d816823.zip
hdf5-b1e75e7816b6d0fdfa9842156dd6ae5d6d816823.tar.gz
hdf5-b1e75e7816b6d0fdfa9842156dd6ae5d6d816823.tar.bz2
Committing clang-format changes
Diffstat (limited to 'test/vfd_swmr_gperf_writer.c')
-rw-r--r--test/vfd_swmr_gperf_writer.c65
1 files changed, 28 insertions, 37 deletions
diff --git a/test/vfd_swmr_gperf_writer.c b/test/vfd_swmr_gperf_writer.c
index a3b5455..ab0fd57 100644
--- a/test/vfd_swmr_gperf_writer.c
+++ b/test/vfd_swmr_gperf_writer.c
@@ -68,9 +68,8 @@ typedef struct {
.update_interval = READER_WAIT_TICKS, .use_vfd_swmr = true, .old_style_grp = false, \
.use_named_pipes = true, .grp_op_pattern = ' ', .grp_op_test = false, .at_pattern = ' ', \
.attr_test = false, .tick_len = 4, .max_lag = 7, .np_fd_w_to_r = -1, .np_fd_r_to_w = -1, \
- .np_notify = 0, .np_verify = 0, .gperf = false, .min_time = 100., .max_time = 0.,.mean_time = 0., \
- .total_time = 0., .fo_total_time = 0., \
- .fc_total_time = 0., .num_attrs = 1 \
+ .np_notify = 0, .np_verify = 0, .gperf = false, .min_time = 100., .max_time = 0., .mean_time = 0., \
+ .total_time = 0., .fo_total_time = 0., .fc_total_time = 0., .num_attrs = 1 \
}
static void
@@ -5001,7 +5000,7 @@ main(int argc, char **argv)
int notify = 0, verify = 0;
bool wg_ret = false;
bool vg_ret = false;
- struct timespec start_time, end_time;
+ struct timespec start_time, end_time;
if (!state_init(&s, argc, argv)) {
printf("state_init failed\n");
@@ -5042,38 +5041,34 @@ main(int argc, char **argv)
TEST_ERROR;
}
- if(s.gperf) {
-
- if (HDclock_gettime(CLOCK_MONOTONIC, &start_time) == -1) {
+ if (s.gperf) {
- fprintf(stderr, "HDclock_gettime failed");
+ if (HDclock_gettime(CLOCK_MONOTONIC, &start_time) == -1) {
- TEST_ERROR;
+ fprintf(stderr, "HDclock_gettime failed");
- }
+ TEST_ERROR;
+ }
}
-
if (writer)
s.file = H5Fcreate(s.filename, H5F_ACC_TRUNC, fcpl, fapl);
else
s.file = H5Fopen(s.filename, H5F_ACC_RDONLY, fapl);
- if(s.gperf) {
-
- if (HDclock_gettime(CLOCK_MONOTONIC, &end_time) == -1) {
+ if (s.gperf) {
- fprintf(stderr, "HDclock_gettime failed");
-
- TEST_ERROR;
+ if (HDclock_gettime(CLOCK_MONOTONIC, &end_time) == -1) {
- }
+ fprintf(stderr, "HDclock_gettime failed");
+ TEST_ERROR;
+ }
- s.fo_total_time = TIME_PASSED(start_time,end_time);
- fprintf(stdout, "H5Fopen time = %lf\n", s.fo_total_time);
+ s.fo_total_time = TIME_PASSED(start_time, end_time);
+ fprintf(stdout, "H5Fopen time = %lf\n", s.fo_total_time);
}
-
+
if (s.file < 0) {
printf("H5Fcreate/open failed\n");
TEST_ERROR;
@@ -5218,16 +5213,14 @@ main(int argc, char **argv)
TEST_ERROR;
}
- if(s.gperf) {
+ if (s.gperf) {
- if (HDclock_gettime(CLOCK_MONOTONIC, &start_time) == -1) {
-
- fprintf(stderr, "HDclock_gettime failed");
-
- TEST_ERROR;
+ if (HDclock_gettime(CLOCK_MONOTONIC, &start_time) == -1) {
- }
+ fprintf(stderr, "HDclock_gettime failed");
+ TEST_ERROR;
+ }
}
if (H5Fclose(s.file) < 0) {
@@ -5235,21 +5228,19 @@ main(int argc, char **argv)
TEST_ERROR;
}
- if(s.gperf) {
+ if (s.gperf) {
- if (HDclock_gettime(CLOCK_MONOTONIC, &end_time) == -1) {
-
- fprintf(stderr, "HDclock_gettime failed");
+ if (HDclock_gettime(CLOCK_MONOTONIC, &end_time) == -1) {
- TEST_ERROR;
+ fprintf(stderr, "HDclock_gettime failed");
- }
+ TEST_ERROR;
+ }
- s.fc_total_time = TIME_PASSED(start_time,end_time);
- fprintf(stdout, "H5Fclose time = %lf\n", s.fc_total_time);
+ s.fc_total_time = TIME_PASSED(start_time, end_time);
+ fprintf(stdout, "H5Fclose time = %lf\n", s.fc_total_time);
}
-
/* Both the writer and reader close the named pipes */
if (s.use_named_pipes && HDclose(fd_writer_to_reader) < 0) {
printf("HDclose failed\n");