File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 2929 - run : rustup update --no-self-update 1.82 && rustup default 1.82
3030 - name : Run tests
3131 run : cargo test
32+ - name : Run tests in release mode
33+ run : cargo test --release
Original file line number Diff line number Diff line change 1+ {
2+ Rust 1.84 standard library
3+ Memcheck:Leak
4+ match-leak-kinds: possible
5+ fun:malloc
6+ fun:_ZN3std6thread6Thread3new*
7+ fun:_ZN3std6thread7current12init_current*
8+ fun:_ZN3std4sync4mpmc7context7Context3new*
9+ fun:_ZN3std3sys12thread_local6native4lazy20Storage*
10+ fun:_ZN3std4sync4mpmc4list16Channel$LT$T$GT$4recv*
11+ }
Original file line number Diff line number Diff line change @@ -77,6 +77,20 @@ fn environment_variables_are_passed_to_program_under_test() {
7777 . stdout ( predicates:: str:: contains ( "RUST_LOG=debug" ) ) ;
7878}
7979
80+ /// Issue: [#126]
81+ ///
82+ /// [#126]: https://github.com/jfrimmel/cargo-valgrind/issues/126
83+ #[ test]
84+ fn empty_tests_not_leak_in_release_mode ( ) {
85+ const FFI_TARGET_CRATE : & [ & str ] = & [ "--manifest-path" , "tests/ffi-bug/Cargo.toml" ] ;
86+ cargo_valgrind ( )
87+ . arg ( "test" )
88+ . arg ( "--release" )
89+ . args ( FFI_TARGET_CRATE )
90+ . assert ( )
91+ . success ( ) ;
92+ }
93+
8094/// If a program crashes within running it in Valgrind, a `vgcore.<pid>`-file
8195/// might be created in the current working directory. In order to not clutter
8296/// the main project directory, this type can be used as a drop-guard to delete
You can’t perform that action at this time.
0 commit comments