Skip to content

Commit f3e1e97

Browse files
committed
CI: Sanitizer runs print backtraces on error
1 parent 509060b commit f3e1e97

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.github/workflows/cppcmake.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ on:
44
push:
55
branches: ['*']
66
tags: ['*']
7-
paths-ignore: ['docs/**', '.travis.yml']
7+
paths:
8+
- '**'
9+
- '!docs/**'
10+
- '!.github/**'
11+
- '.github/workflows/cppcmake.yml'
812
pull_request:
913
release:
1014
types: ['created']

.github/workflows/sanitize.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v2
28-
- name: Configure CMake
28+
- name: Install build toolchain
2929
run: |
3030
wget https://apt.llvm.org/llvm-snapshot.gpg.key
3131
echo "deb [signed-by=$PWD/llvm-snapshot.gpg.key] http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main" | sudo tee /etc/apt/sources.list.d/llvm.list
3232
sudo apt update
33-
sudo apt install -y libpugixml-dev clang-13
33+
sudo apt install -y libpugixml-dev clang-13 gdb
34+
- name: Configure CMake
35+
run: |
3436
# linking a C++ library to a C program fails with ubsan enabled; disable lslver for this run
3537
sed -i -e'/lslver/d' CMakeLists.txt
3638
cmake --version
@@ -54,11 +56,9 @@ jobs:
5456
- name: make
5557
run: cmake --build build --config RelWithDebInfo -j
5658

57-
- name: unit tests (internal functions)
58-
run: catchsegv build/testing/lsl_test_internal --order rand --wait-for-keypress never --durations yes
59-
timeout-minutes: 10
60-
61-
- name: unit tests (exported functions)
62-
run: catchsegv build/testing/lsl_test_exported --order rand --wait-for-keypress never --durations yes
63-
timeout-minutes: 10
64-
if: ${{ success() || failure() }}
59+
- name: run unit tests
60+
run: |
61+
# alias gdbwrap="gdb --batch -ex 'run --order rand --wait-for-keypress never --durations yes' -ex 'thread apply all bt' -return-child-result"
62+
gdb --batch -ex 'run --order rand --wait-for-keypress never --durations yes' -ex 'thread apply all bt' -return-child-result build/testing/lsl_test_internal
63+
gdb --batch -ex 'run --order rand --wait-for-keypress never --durations yes' -ex 'thread apply all bt' -return-child-result build/testing/lsl_test_exported
64+
timeout-minutes: 15

0 commit comments

Comments
 (0)