diff options
Diffstat (limited to 'ripple/minitrace/src')
-rw-r--r-- | ripple/minitrace/src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index 01564d4..1c82e2d 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -155,6 +155,10 @@ macro_rules! syscall_bitflags { #[cfg(test)] fn verify() { $( + let libc_flag = stringify!($LIBC_FLAG); + let flag = stringify!($FLAG); + assert!(libc_flag.ends_with(flag), "{libc_flag} doesn't end with {flag}"); + let left = Self::$FLAG.bits(); let right = libc::$LIBC_FLAG; assert!( |