Skip to content

Commit

Permalink
last: Remove macOS from -x test
Browse files Browse the repository at this point in the history
  • Loading branch information
Puffy1215 authored and sylvestre committed Jul 24, 2024
1 parent b9a58d5 commit b4087a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/by-util/test_last.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ fn test_limit_arg() {
}

#[test]
#[cfg(unix)]
// The -x flag generally adds two rows "shutdown" and "runlevel"
// "shutdown" cannot be checked for since not every machine will have shutdown
// "runlevel" only makes sense for Linux systems, so only Linux is included for
// this test.
#[cfg(linux)]
fn test_system_arg() {
new_ucmd!().arg("-x").succeeds().stdout_contains("runlevel");
}
Expand Down

0 comments on commit b4087a7

Please sign in to comment.