diff options
author | Quincey Koziol <koziol@lbl.gov> | 2020-04-21 13:10:26 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@lbl.gov> | 2020-04-21 13:10:26 (GMT) |
commit | c9a21e932e179e8a12106d5c98f9357b12aa6e3f (patch) | |
tree | ab184e76824e8b4250ad9bf38286a65227fe2407 /tools/test/perform/overhead.c | |
parent | 7ba692badf9a1bafb9d3b2f72efbbdf773b5932a (diff) | |
parent | 9e5dbf69062d4d2cb40ba8f68edb355477fc9b67 (diff) | |
download | hdf5-c9a21e932e179e8a12106d5c98f9357b12aa6e3f.zip hdf5-c9a21e932e179e8a12106d5c98f9357b12aa6e3f.tar.gz hdf5-c9a21e932e179e8a12106d5c98f9357b12aa6e3f.tar.bz2 |
Merge pull request #2527 in HDFFV/hdf5 from trim_whitespace to develop
* commit '9e5dbf69062d4d2cb40ba8f68edb355477fc9b67':
Trim trailing whitespace
Diffstat (limited to 'tools/test/perform/overhead.c')
-rw-r--r-- | tools/test/perform/overhead.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/test/perform/overhead.c b/tools/test/perform/overhead.c index 108d9e4..58558a5 100644 --- a/tools/test/perform/overhead.c +++ b/tools/test/perform/overhead.c @@ -217,9 +217,9 @@ test(fill_t fill_style, const double splits[], fspace, H5P_DEFAULT, dcpl, H5P_DEFAULT)) < 0) goto error; if ((fd=HDopen(FILE_NAME_1, O_RDONLY, 0666)) < 0) goto error; - if(FILL_RANDOM==fill_style) + if(FILL_RANDOM==fill_style) had = (int *)calloc((size_t)cur_size[0], sizeof(int)); - + for (i=1; i<=cur_size[0]; i++) { /* Decide which chunk to write to */ @@ -391,7 +391,7 @@ main(int argc, char *argv[]) nerrors += test(FILL_INWARD, splits, FALSE, use_cache); nerrors += test(FILL_OUTWARD, splits, FALSE, use_cache); nerrors += test(FILL_RANDOM, splits, FALSE, use_cache); - } + } else { if (use_cache) usage(argv[0]); nerrors += test(fill_style, splits, TRUE, FALSE); |