mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Added #ifdef QAK macros around log VFD calls in SWMR acceptance
tests.
This commit is contained in:
+2
-1
@@ -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)) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user