mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-01 23:14:14 +08:00
mdbx-tests: explicit enable coredumps on Linux.
This commit is contained in:
parent
6f2c1e52ad
commit
2f5606702e
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user