Skip to content

Commit 8c51f83

Browse files
committed
test: skip posixGetUserInfo test on non-POSIX platforms
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
1 parent 7d8a56b commit 8c51f83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/std/process.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,7 @@ pub fn posixGetUserInfo(name: []const u8) !UserInfo {
16701670
}
16711671

16721672
test posixGetUserInfo {
1673+
if (native_os != .linux and native_os != .macos and !native_os.isBSD()) return error.SkipZigTest;
16731674
if (!builtin.link_libc) return error.SkipZigTest;
16741675

16751676
const nobody = try posixGetUserInfo("nobody");

0 commit comments

Comments
 (0)