Skip to content

Commit 11a8f57

Browse files
committed
Let valgrind return a non-zero error code (0 = success on bash) if there are memory leaks because otherwise it returns the return code of the software its running
1 parent 28f1105 commit 11a8f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: .github/workflows/unit-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
cd "$BUILD_PATH"
3636
cmake ..
3737
make
38-
valgrind --leak-check=yes bin/testArduinoIoTCloud
38+
valgrind --leak-check=yes --error-exitcode=1 bin/testArduinoIoTCloud
3939
4040
- name: Check code coverage
4141
run: |

0 commit comments

Comments
 (0)