diff options
author | Robb Matzke <matzke@llnl.gov> | 2000-06-23 17:46:17 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 2000-06-23 17:46:17 (GMT) |
commit | 4aa0e950f9636066718d3786b1dbe09e70f413c4 (patch) | |
tree | 92a94d3cb2d7c92ae76a434f696046cc11f80ba0 /test | |
parent | 6f8f4a3c6e5f1f2fa04bccd84d7555e1cef08e63 (diff) | |
download | hdf5-4aa0e950f9636066718d3786b1dbe09e70f413c4.zip hdf5-4aa0e950f9636066718d3786b1dbe09e70f413c4.tar.gz hdf5-4aa0e950f9636066718d3786b1dbe09e70f413c4.tar.bz2 |
[svn-r2411] Added support for log VFL driver.
Diffstat (limited to 'test')
-rw-r--r-- | test/h5test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c index a1078f1..a89c49b 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -307,6 +307,7 @@ h5_fileaccess(void) char s[1024]; hid_t fapl = -1; hsize_t fam_size = 100*1024*1024; /*100 MB*/ + int verbosity = 1; H5FD_mem_t mt; /* First use the environment variable, then the constant */ @@ -368,6 +369,12 @@ h5_fileaccess(void) fam_size = strtod(val, NULL) * 1024*1024; } if (H5Pset_fapl_family(fapl, fam_size, H5P_DEFAULT)<0) return -1; + } else if (!strcmp(name, "log")) { + /* Log file access */ + if ((val=strtok(NULL, " \t\n\r"))) { + verbosity = strtol(val, NULL, 0); + } + if (H5Pset_fapl_log(fapl, NULL, verbosity)<0) return -1; } else { /* Unknown driver */ return -1; |