Skip to content

Commit

Permalink
add memmory leak test
Browse files Browse the repository at this point in the history
  • Loading branch information
fangshuai03 committed Jan 19, 2024
1 parent 9ea64c2 commit 056c3d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/c++-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ jobs:

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential cmake
- name: Install Valgrind
run: sudo apt-get install -y valgrind

- name: Build
run: cd ./c++/gtest_mini_project && cmake . && make

- name: Test
run: cd ./c++/gtest_mini_project
run: cd ./c++/gtest_mini_project && ./tests/test_demo

- name: Run Valgrind Memory Leak Test
run: cd ./c++/gtest_mini_project && valgrind --leak-check=full --show-leak-kinds=all ./tests/test_demo

0 comments on commit 056c3d4

Please sign in to comment.