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 0c8ab50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions device-api/src/proc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ fn read_cmdline(pid: u32) -> Option<String> {

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

#[test]
#[cfg(target_os = "linux")]
fn read_cmdline_test() {
Expand Down

0 comments on commit 0c8ab50

Please sign in to comment.