Skip to content

Commit

Permalink
specify leak-check=full with valgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Aug 18, 2024
1 parent 3ae4f70 commit 1fbff63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assyst-core/src/command/misc/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ pub async fn charge(ctxt: CommandCtxt<'_>, script: Codeblock, flags: ChargeFlags
let bin_result = if std::fs::metadata(executable).is_ok() {
Some(exec_sync(&format!(
"cd {dir} && {}./a.out",
if flags.valgrind { "valgrind -q " } else { "" }
if flags.valgrind {
"valgrind -q --leak-check=full "
} else {
""
}
))?)
} else {
None
Expand Down

0 comments on commit 1fbff63

Please sign in to comment.