mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:34: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
|
# 3. Create test-directory in ramfs/tmpfs, i.e. create/format/mount if required
|
||||||
case ${UNAME} in
|
case ${UNAME} in
|
||||||
Linux)
|
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)
|
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
|
# 3. Create test-directory in ramfs/tmpfs, i.e. create/format/mount if required
|
||||||
case ${UNAME} in
|
case ${UNAME} in
|
||||||
Linux)
|
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)
|
FreeBSD)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user