Commit efd68531 authored by zhujiashun's avatar zhujiashun

fix_core_name: enable core pid

parent 114ec7a3
......@@ -17,6 +17,7 @@ env:
before_script:
- ulimit -c unlimited -S # enable core dumps
- sudo echo "1" > /proc/sys/kernel/core_uses_pid
before_install:
- wget --no-clobber https://github.com/bazelbuild/bazel/releases/download/0.25.1/bazel_0.25.1-linux-x86_64.deb && sudo dpkg -i bazel_0.25.1-linux-x86_64.deb
......
......@@ -23,10 +23,6 @@ rc=0
test_bins="test_butil test_bvar bthread*unittest brpc*unittest"
ulimit -c unlimited # turn on coredumps
for test_bin in $test_bins; do
# test_butil would generate core file due to ASSERT_DEATH and still be passed.
# The core file should be removed first otherwise other core would not be
# generated.
rm -rf core*
test_num=$((test_num + 1))
>&2 echo "[runtest] $test_bin"
./$test_bin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment