mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests: disable tests for tools unsupported on OpenBSD
pinky, uptime and who are not supported on OpenBSD (no support of utmpx feature) => disable tests for these tools on OpenBSD with conditional compilation Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
parent
746a7b14d0
commit
4589f637ee
3 changed files with 15 additions and 0 deletions
|
@ -11,6 +11,7 @@ fn test_invalid_arg() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
fn test_uptime() {
|
||||
TestScenario::new(util_name!())
|
||||
.ucmd()
|
||||
|
@ -22,6 +23,7 @@ fn test_uptime() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
fn test_uptime_since() {
|
||||
let re = Regex::new(r"\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}").unwrap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue