Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
03abe768
Unverified
Commit
03abe768
authored
Oct 12, 2019
by
Ge Jun
Committed by
GitHub
Oct 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #939 from zyearn/fix_core_name
remove core before running test
parents
40fd868f
e8d1b1ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
.travis.yml
.travis.yml
+4
-0
run_tests.sh
test/run_tests.sh
+1
-0
No files found.
.travis.yml
View file @
03abe768
...
...
@@ -17,6 +17,10 @@ env:
before_script
:
-
ulimit -c unlimited -S
# enable core dumps
# The real command should be put into another "bash -c" otherwise it
# would cause a permission issue. The reason may be that the 'sudo'
# only promote the 'echo' part but not the whole command.
-
sudo bash -c "echo 'core.%e.%p' > /proc/sys/kernel/core_pattern"
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
...
...
test/run_tests.sh
View file @
03abe768
...
...
@@ -40,6 +40,7 @@ print_bt () {
# find newest core file
COREFILE
=
$(
find
.
-name
"core*"
-type
f
-printf
"%T@ %p
\n
"
|
sort
-k
1
-n
|
cut
-d
' '
-f
2- |
tail
-n
1
)
if
[
!
-z
"
$COREFILE
"
]
;
then
>
&2
echo
"corefile=
$COREFILE
prog=
$1
"
gdb
-c
"
$COREFILE
"
$1
-ex
"thread apply all bt"
-ex
"set pagination 0"
-batch
;
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment