Files
uutil-linux/tests/by-util/test_lscpu.rs
2025-01-24 22:28:48 +05:30

17 lines
425 B
Rust

// This file is part of the uutils util-linux package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use crate::common::util::TestScenario;
#[test]
fn test_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
}
#[test]
fn test_lscpt_with_arg() {
new_ucmd!().arg("--hex").succeeds().stdout_contains("0x");
}