summaryrefslogtreecommitdiff
path: root/init.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'init.cfg')
-rw-r--r--init.cfg9
1 files changed, 8 insertions, 1 deletions
diff --git a/init.cfg b/init.cfg
index 714854648..b92f717f5 100644
--- a/init.cfg
+++ b/init.cfg
@@ -540,7 +540,14 @@ seek_data_capable_()
warn_ 'seek_data_capable_: python missing: assuming not SEEK_DATA capable'
return 1
fi
- $PYTHON_ "$abs_srcdir"/tests/seek-data-capable "$@"
+
+ # Use timeout if available to skip cases where SEEK_DATA takes a long time.
+ # We saw FreeBSD 9.1 take 35s to return from SEEK_DATA for a 1TiB empty file.
+ # Note lseek() is uninterruptible on FreeBSD 9.1, but it does eventually
+ # return, and the timeout will ensure a failure return from the process.
+ timeout --version >/dev/null && TIMEOUT_='timeout 10'
+
+ $TIMEOUT_ $PYTHON_ "$abs_srcdir"/tests/seek-data-capable "$@"
}
# Skip the current test if "." lacks d_type support.