fixed valgrind crate

This commit is contained in:
Anton-4 2024-10-21 17:43:22 +02:00
parent c64160ac73
commit 0e28199b49
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
4 changed files with 32 additions and 10 deletions

View file

@ -65,6 +65,10 @@ impl CmdOut {
pub fn assert_clean_success(&self) {
self.assert_success_with_no_unexpected_errors();
}
pub fn assert_zero_exit(&self) {
assert!(self.status.success(), "Command failed\n\n{self}");
}
pub fn assert_nonzero_exit(&self) {
assert!(!self.status.success());