summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c
index acc7630..5ca5d13 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -577,6 +577,11 @@ h5_fileaccess(void)
if (H5Pset_fapl_log(fapl, NULL, log_flags, (size_t)0) < 0)
return -1;
+ } else if (!HDstrcmp(name, "direct")) {
+#ifdef H5_HAVE_DIRECT
+ /* Linux direct read() and write() system calls */
+ if (H5Pset_fapl_direct(fapl)<0) return -1;
+#endif
} else {
/* Unknown driver */
return -1;