Skip to content

Commit cfe1114

Browse files
Avoid spourious memory leaks in valgrind
1 parent 88277c5 commit cfe1114

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/cmake.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,19 @@ jobs:
222222
working-directory: ${{github.workspace}}/build
223223
run: |
224224
ctest -C ${{env.BUILD_TYPE}} --schedule-random -j2 -T memcheck > memcheck.out
225+
cat memcheck.out
225226
if tail -n 1 memcheck.out | grep -q "Memory checking results:"; then
226-
cat memcheck.out
227227
exit 0
228228
else
229-
cat memcheck.out
230-
exit 1
229+
for f in Testing/Temporary/MemoryChecker.*.log; do
230+
if tail -n 1 $f | grep -q "ERROR SUMMARY: 0 errors"; then
231+
tail -n 1 $f
232+
continue
233+
else
234+
echo "Memory check failed in $f"
235+
cat $f
236+
exit 1
237+
fi
238+
done
239+
exit 0
231240
fi

0 commit comments

Comments
 (0)