1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

Merge pull request #6406 from jadijadi/users-openbsd

users: support OpenBSD using utmp
This commit is contained in:
Daniel Hofstetter 2024-06-29 07:52:10 +02:00 committed by GitHub
commit f451714d26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 123 additions and 90 deletions

View file

@ -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");
}