Added #ifdef QAK macros around log VFD calls in SWMR acceptance

tests.
This commit is contained in:
Dana Robinson 2017-02-08 11:29:04 -05:00
parent 5258d42aa6
commit bb354058c0
3 changed files with 6 additions and 1 deletions

View File

@ -278,6 +278,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file,
if((fapl = h5_fileaccess()) < 0)
return -1;
#ifdef QAK
/* Log I/O when verbose output it enbabled */
if(verbose) {
char verbose_name[1024];
@ -286,7 +287,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file,
H5Pset_fapl_log(fapl, verbose_name, H5FD_LOG_ALL, (size_t)(512 * 1024 * 1024));
} /* end if */
#endif /* QAK */
/* Loop over reading records until [at least] the correct # of seconds have passed */
while(curr_time < (time_t)(start_time + (time_t)nseconds)) {

View File

@ -92,6 +92,7 @@ create_file(const char *filename, hbool_t verbose, FILE *verbose_file,
if(H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0)
return -1;
#ifdef QAK
if(verbose) {
char verbose_name[1024];
@ -99,6 +100,7 @@ create_file(const char *filename, hbool_t verbose, FILE *verbose_file,
H5Pset_fapl_log(fapl, verbose_name, H5FD_LOG_ALL, (size_t)(512 * 1024 * 1024));
} /* end if */
#endif /* QAK */
/* Create file creation property list */
if((fcpl = H5Pcreate(H5P_FILE_CREATE)) < 0)

View File

@ -107,6 +107,7 @@ open_skeleton(const char *filename, hbool_t verbose, FILE *verbose_file,
}
#endif /* QAK */
#ifdef QAK
if(verbose) {
char verbose_name[1024];
@ -114,6 +115,7 @@ open_skeleton(const char *filename, hbool_t verbose, FILE *verbose_file,
H5Pset_fapl_log(fapl, verbose_name, H5FD_LOG_ALL, (size_t)(512 * 1024 * 1024));
} /* end if */
#endif /* QAK */
/* Open the file */
if((fid = H5Fopen(filename, H5F_ACC_RDWR | H5F_ACC_SWMR_WRITE, fapl)) < 0)