diff options
author | edef <edef@unfathomable.blue> | 2022-07-29 13:02:42 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-07-29 13:02:42 +0000 |
commit | c637a65c0d239bb71e3d4db58d6221c6a09583c1 (patch) | |
tree | e60f9e01ff829ae22706713bde197d14926f2328 /ripple | |
parent | e635aaa99ed3458db4a9369811886bb010d86b72 (diff) | |
download | unf-legacy-c637a65c0d239bb71e3d4db58d6221c6a09583c1.tar.zst |
ripple/minitrace: verify that libc flag naming matches
Change-Id: Ic6392ac15d249f22aec9d866de088d5901d09948
Diffstat (limited to 'ripple')
-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!( |