Mercurial > crates > nonstick
comparison libpam-sys/libpam-sys-test/build.rs @ 132:0b6a17f8c894
Get constant test working again with OpenPAM.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Wed, 02 Jul 2025 02:34:29 -0400 |
| parents | a632a8874131 |
| children | 6c1e1bdb4164 |
comparison
equal
deleted
inserted
replaced
| 131:a632a8874131 | 132:0b6a17f8c894 |
|---|---|
| 98 .map(|item| { | 98 .map(|item| { |
| 99 let name = item.ident.to_string(); | 99 let name = item.ident.to_string(); |
| 100 if let Some(stripped) = name.strip_prefix(&format!("{REDIR_FD}_")) { | 100 if let Some(stripped) = name.strip_prefix(&format!("{REDIR_FD}_")) { |
| 101 format!("assert_eq!(generated::{name} as i32, libpam_sys::{REDIR_FD}::{stripped}.into());") | 101 format!("assert_eq!(generated::{name} as i32, libpam_sys::{REDIR_FD}::{stripped}.into());") |
| 102 } else { | 102 } else { |
| 103 format!("assert_eq!(generated::{name}, libpam_sys::{name});") | 103 format!("assert_eq!(generated::{name} as i32, libpam_sys::{name});") |
| 104 } | 104 } |
| 105 }), | 105 }), |
| 106 ); | 106 ); |
| 107 tests.push("}".into()); | 107 tests.push("}".into()); |
| 108 let const_test = test_file("constant_test.rs"); | 108 let const_test = test_file("constant_test.rs"); |
