Skip to content

Commit

Permalink
Merge branch '1-add-memory-leak-check-to-github-ci' into 'develop'
Browse files Browse the repository at this point in the history
Fix issue with bash script for memleak ci

See merge request njoy/ENDFtk!5
  • Loading branch information
whaeck committed Oct 14, 2024
2 parents fadb58a + e533081 commit 5436586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/prep_valgrind_test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash
echo "
check_return_code() {
if [ $? -ne 0 ]; then
if [ \$? -ne 0 ]; then
echo \"Memory leak detected. Test Failed...\"
exit 1
fi
Expand All @@ -12,5 +12,5 @@ check_return_code() {
find . -iname "*.test" -type f | while IFS= read -r line; do
dirname=$(dirname "$line")
realname=$(basename "$line")
echo "cd ${dirname}; valgrind --leak-check=full --show-leak-kinds=all --error-exitcode=1 ./${realname}; check_return_code; cd -" >> test_valgrind.sh
echo "cd ${dirname}; valgrind --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all --error-exitcode=1 ./${realname}; check_return_code; cd -" >> test_valgrind.sh
done

0 comments on commit 5436586

Please sign in to comment.