mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
Add USING_SYSTEM_TDB test for rust config
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
518854e29b
commit
7140c506ee
@ -25,3 +25,19 @@
|
||||
#![allow(dead_code)]
|
||||
#![allow(clippy::upper_case_acronyms)]
|
||||
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_using_system_tdb() {
|
||||
// This test just ensures that USING_SYSTEM_TDB is available from the
|
||||
// config. None of the other options are really used at the moment.
|
||||
assert!(
|
||||
USING_SYSTEM_TDB == 0 || USING_SYSTEM_TDB == 1,
|
||||
"Unexpected value for USING_SYSTEM_TDB: {}",
|
||||
USING_SYSTEM_TDB
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user