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
|
@ -21,6 +21,7 @@ fn test_capitalize() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
fn test_long_format() {
|
||||
let login = "root";
|
||||
let pw: Passwd = Passwd::locate(login).unwrap();
|
||||
|
@ -44,6 +45,7 @@ fn test_long_format() {
|
|||
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
fn test_long_format_multiple_users() {
|
||||
// multiple instances of one account we know exists,
|
||||
// the account of the test runner,
|
||||
|
@ -71,6 +73,7 @@ fn test_long_format_wo_user() {
|
|||
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
fn test_short_format_i() {
|
||||
// allow whitespace variation
|
||||
// * minor whitespace differences occur between platform built-in outputs; specifically, the number of trailing TABs may be variant
|
||||
|
@ -85,6 +88,7 @@ fn test_short_format_i() {
|
|||
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
fn test_short_format_q() {
|
||||
// allow whitespace variation
|
||||
// * minor whitespace differences occur between platform built-in outputs; specifically, the number of trailing TABs may be variant
|
||||
|
@ -99,6 +103,7 @@ fn test_short_format_q() {
|
|||
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
fn test_no_flag() {
|
||||
let ts = TestScenario::new(util_name!());
|
||||
let actual = ts.ucmd().succeeds().stdout_move_str();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue