Skip to content

Commit 3685047

Browse files
d-e-s-odanielocfb
authored andcommitted
Run tcp_ca example with leak sanitizer enabled
Make sure to run our tcp_ca example with leak sanitizer enabled, so as to catch any potential memory leaks in the skeleton generation logic. Signed-off-by: Daniel Müller <[email protected]>
1 parent c186165 commit 3685047

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,16 @@ jobs:
7171
- uses: actions/checkout@v4
7272
- name: Install deps
7373
run: sudo apt-get install -y libelf-dev
74-
- uses: dtolnay/rust-toolchain@stable
74+
- uses: dtolnay/rust-toolchain@nightly
75+
with:
76+
components: rustfmt
7577
- uses: Swatinem/rust-cache@v2
76-
- run: |
78+
- name: Run tcp_ca
79+
env:
80+
CFLAGS: '-fsanitize=leak'
81+
CXXFLAGS: '-fsanitize=leak'
82+
RUSTFLAGS: '-Zsanitizer=leak'
83+
run: |
7784
cargo build --package tcp_ca
7885
sudo target/debug/tcp_ca
7986

0 commit comments

Comments
 (0)