diff options
author | Daniel Hofstetter <daniel.hofstetter@42dh.com> | 2024-06-29 07:52:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-29 07:52:10 +0200 |
commit | f451714d26b6a58eab7f40ad3ea5b5171df29c45 (patch) | |
tree | a4ea651ceab5d999cc5ff88246838b2819722566 /tests/by-util | |
parent | 69b603bfe74d07c3e60c935bbf5c0355ef55f50b (diff) | |
parent | 576341bb9389b254fd198ed2906b8838b406c707 (diff) |
Merge pull request #6406 from jadijadi/users-openbsd
users: support OpenBSD using utmp
Diffstat (limited to 'tests/by-util')
-rw-r--r-- | tests/by-util/test_users.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/by-util/test_users.rs b/tests/by-util/test_users.rs index 3d87aa9d0..9ca548fb9 100644 --- a/tests/by-util/test_users.rs +++ b/tests/by-util/test_users.rs @@ -31,3 +31,12 @@ fn test_users_check_name() { new_ucmd!().succeeds().stdout_is(&expected); } + +#[test] +#[cfg(target_os = "openbsd")] +fn test_users_check_name_openbsd() { + new_ucmd!() + .args(&["openbsd_utmp"]) + .run() + .stdout_contains("test"); +} |