mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
test(uname): Add a test for the -o/--operating-system flag
This commit is contained in:
parent
47fefae5f6
commit
a93d007cde
1 changed files with 10 additions and 0 deletions
|
@ -15,3 +15,13 @@ fn test_uname_name() {
|
|||
let result = ucmd.arg("-n").run();
|
||||
assert!(result.success);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_uname_kernel() {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
|
||||
let result = ucmd.arg("-o").run();
|
||||
assert!(result.success);
|
||||
#[cfg(target_os = "linux")]
|
||||
assert!(result.stdout.to_lowercase().contains("linux"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue