Skip to content

Commit 833ae88

Browse files
Use Debug mode in valgrind CI
1 parent 1cae539 commit 833ae88

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/cmake.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189
memory-check:
190190
runs-on: ubuntu-latest
191191
env:
192-
BUILD_TYPE: Release
192+
BUILD_TYPE: Debug
193193

194194
steps:
195195

@@ -219,4 +219,6 @@ jobs:
219219

220220
- name: Test
221221
working-directory: ${{github.workspace}}/build
222-
run: ctest -C ${{env.BUILD_TYPE}} --schedule-random -j2 --output-on-failure
222+
run: |
223+
ctest -C ${{env.BUILD_TYPE}} --schedule-random -j2 -T memcheck
224+
cat valgrind-out.txt

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ endif()
4949
find_program( MEMORYCHECK_COMMAND valgrind )
5050
if( MEMORYCHECK_COMMAND )
5151
message( STATUS "Found valgrind: ${MEMORYCHECK_COMMAND}" )
52-
set( MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes --leak-check=full" )
52+
set( MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-leak-kinds=all --log-file=valgrind-out.txt --track-origins=yes" )
5353
endif()
5454

5555
# By default test Fortran compiler complex abs and complex division

0 commit comments

Comments
 (0)