mdbx-tests: explicit enable coredumps on Linux.

This commit is contained in:
Leonid Yuriev 2021-12-12 12:01:51 +03:00
parent 6f2c1e52ad
commit 2f5606702e
2 changed files with 10 additions and 0 deletions

View File

@ -210,6 +210,11 @@ echo "=== use ${db_size_mb}M for DB"
# 3. Create test-directory in ramfs/tmpfs, i.e. create/format/mount if required
case ${UNAME} in
Linux)
ulimit -c unlimited
if [ "$(cat /proc/sys/kernel/core_pattern)" != "core.%p" ]; then
echo "core.%p > /proc/sys/kernel/core_pattern" >&2
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern || true
fi
;;
FreeBSD)

View File

@ -210,6 +210,11 @@ echo "=== use ${db_size_mb}M for DB"
# 3. Create test-directory in ramfs/tmpfs, i.e. create/format/mount if required
case ${UNAME} in
Linux)
ulimit -c unlimited
if [ "$(cat /proc/sys/kernel/core_pattern)" != "core.%p" ]; then
echo "core.%p > /proc/sys/kernel/core_pattern" >&2
echo "core.%p" | sudo tee /proc/sys/kernel/core_pattern || true
fi
;;
FreeBSD)