From ad5710ef668322c241df1442c335bfc7f09b5184 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Mon, 5 Oct 2020 15:39:48 -0500 Subject: h5repacktest VFD fix and formatting changes --- hl/src/H5LTanalyze.c | 6 +----- src/H5Fquery.c | 4 ++-- tools/test/h5repack/h5repack.sh.in | 2 +- tools/test/h5repack/h5repacktst.c | 2 -- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/hl/src/H5LTanalyze.c b/hl/src/H5LTanalyze.c index 41e77b0..afef871 100644 --- a/hl/src/H5LTanalyze.c +++ b/hl/src/H5LTanalyze.c @@ -2413,11 +2413,7 @@ yy_scan_buffer(char *base, yy_size_t size) * yy_scan_bytes() instead. */ YY_BUFFER_STATE -yy_scan_string(const char *yystr) -{ - - return yy_scan_bytes(yystr, (int)strlen(yystr)); -} +yy_scan_string(const char *yystr) { return yy_scan_bytes(yystr, (int)strlen(yystr)); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. diff --git a/src/H5Fquery.c b/src/H5Fquery.c index 580c5fa..7609ea4 100644 --- a/src/H5Fquery.c +++ b/src/H5Fquery.c @@ -200,8 +200,8 @@ H5F_get_actual_name(const H5F_t *f) * Function: H5F_get_extpath * * Purpose: Retrieve the file's 'extpath' flags - * This is used by H5L_extern_traverse() and H5D_build_file_prefix() to retrieve the main file's - *location when searching the target file. + * This is used by H5L_extern_traverse() and H5D_build_file_prefix() + * to retrieve the main file's location when searching the target file. * * Return: 'extpath' on success/abort on failure (shouldn't fail) *------------------------------------------------------------------------- diff --git a/tools/test/h5repack/h5repack.sh.in b/tools/test/h5repack/h5repack.sh.in index 431f959..5e5b09c 100644 --- a/tools/test/h5repack/h5repack.sh.in +++ b/tools/test/h5repack/h5repack.sh.in @@ -683,7 +683,7 @@ DIFFFAIL() $RUNSERIAL $H5DIFF_BIN -q "$@" ) RET=$? - if [ $RET == 0 ] ; then + if [ $RET -eq 0 ] ; then echo "*FAILED*" nerrors="`expr $nerrors + 1`" else diff --git a/tools/test/h5repack/h5repacktst.c b/tools/test/h5repack/h5repacktst.c index b80ec32..42233a2 100644 --- a/tools/test/h5repack/h5repacktst.c +++ b/tools/test/h5repack/h5repacktst.c @@ -3292,8 +3292,6 @@ make_layout2(hid_t loc_id) if (make_dset(loc_id, CHUNKED_S_FIX, s_sid, chunked_dcpl, s_buf[0]) < 0) goto error; - HDfree(s_buf); - ret_value = 0; error: -- cgit v0.12