From cb28551c3e3761347a371f9c55f1cde2a892b874 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sun, 1 Apr 2012 14:25:41 -0500 Subject: [svn-r22221] Description: Small code cleanup while tracking down h5repack issue. Tested on: Mac OSX/64 10.7.3 (amazon) w/debug (h5committest coming up) --- tools/h5repack/h5repacktst.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/h5repack/h5repacktst.c b/tools/h5repack/h5repacktst.c index 5c6f87b..fe8f847 100644 --- a/tools/h5repack/h5repacktst.c +++ b/tools/h5repack/h5repacktst.c @@ -1575,7 +1575,7 @@ int main (void) /* size of the output file. */ if(h5repack(FNAME1, FNAME1OUT, &pack_options) < 0) GOERROR; - if (HDstat(FNAME1OUT, &file_stat) < 0) + if(HDstat(FNAME1OUT, &file_stat) < 0) GOERROR; fsize1 = file_stat.st_size; /* run it again with metadata option */ @@ -1584,12 +1584,12 @@ int main (void) GOERROR; if(h5diff(FNAME1, FNAME1OUT, NULL, NULL, &diff_options) > 0) GOERROR; + if(h5repack_verify(FNAME1, FNAME1OUT, &pack_options) <= 0) + GOERROR; /* record the file size of the output file */ - if (HDstat(FNAME1OUT, &file_stat) < 0) + if(HDstat(FNAME1OUT, &file_stat) < 0) GOERROR; fsize2 = file_stat.st_size; - if(h5repack_verify(FNAME1, FNAME1OUT, &pack_options) <= 0) - GOERROR; /* verify second file size is larger than the first one */ if(fsize2 <= fsize1) GOERROR; -- cgit v0.12