We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b44528 commit a6a5cc8Copy full SHA for a6a5cc8
tests/system/main.rs
@@ -3,6 +3,8 @@
3
#![cfg(feature = "system")]
4
#![cfg(not(any(windows, target_os = "wasi")))]
5
6
+#[cfg(linux_kernel)]
7
+mod module;
8
#[cfg(target_os = "linux")]
9
mod reboot;
10
#[cfg(linux_kernel)]
tests/system/module.rs
@@ -0,0 +1,10 @@
1
+#[cfg(feature = "fs")]
2
+#[test]
+fn test_kernel_module() {
+ use rustix::cstr;
+ use rustix::system::*;
+
+ let _ = init_module(&[], cstr!(""));
+ let _ = finit_module(rustix::fs::CWD, cstr!(""), 0);
+ let _ = delete_module(cstr!(""), 0);
+}
0 commit comments