Skip to content

Commit

Permalink
disable import for non linux test
Browse files Browse the repository at this point in the history
Signed-off-by: bg-furiosa <[email protected]>
  • Loading branch information
bg-furiosa committed Apr 23, 2024
1 parent baac82d commit dd32175
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion device-api/src/proc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ fn read_cmdline(pid: u32) -> Option<String> {

#[cfg(test)]
mod tests {
#[test]
#[cfg(target_os = "linux")]
use super::*;

#[cfg(target_os = "linux")]
fn read_cmdline_test() {
let my_pid = std::process::id();
Expand Down

0 comments on commit dd32175

Please sign in to comment.