Mercurial > crates > nonstick
diff testharness/src/bin/testharness.rs @ 173:46e8ce5cd5d1
Miscellaneous doc and code cleanups.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 29 Jul 2025 16:52:32 -0400 |
parents | 6727cbe56f4a |
children | a8c814843ccb |
line wrap: on
line diff
--- a/testharness/src/bin/testharness.rs Fri Jul 25 21:02:53 2025 -0400 +++ b/testharness/src/bin/testharness.rs Tue Jul 29 16:52:32 2025 -0400 @@ -12,10 +12,18 @@ use std::ffi::OsString; use std::os::unix::ffi::OsStrExt; +macro_rules! run { + ($x:expr) => { + eprintln!("START {}", stringify!($x)); + $x; + eprintln!("..END {}", stringify!($x)); + }; +} + fn main() { - test_wrong_user(); - test_wrong_password(); - test_correct(); + run!(test_wrong_user()); + run!(test_wrong_password()); + run!(test_correct()); } #[derive(Debug, Default)]