mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-30 10:39:12 +00:00
sys: fs: move tests to a sub-module
This ensures that test code is not compiled in regular builds Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
299a478f15
commit
bcd134a349
@ -152,6 +152,10 @@ fn create_path_at_do(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_create_path() {
|
fn test_create_path() {
|
||||||
create_path(
|
create_path(
|
||||||
@ -165,3 +169,4 @@ fn test_create_path() {
|
|||||||
)
|
)
|
||||||
.expect("expected create_path to work");
|
.expect("expected create_path to work");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user