From d526f1fab82ed18effb9f481d93a420181be63c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 16 Mar 2022 07:12:35 +0200 Subject: [PATCH] fix shell unit test --- src/user.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/user.zig b/src/user.zig index e66f98c..1d30d63 100644 --- a/src/user.zig +++ b/src/user.zig @@ -297,7 +297,7 @@ fn testShellIndex(allocator: Allocator) StringHashMap(u6) { } const test_shell_reader = shellImport.ShellReader{ - .section_blob = "/bin/bash000/bin/zsh", + .section_blob = "/bin/bash.../bin/zsh", .section_index = &[_]shellImport.ShellIndex{ shellImport.ShellIndex{ .offset = 0, .len = 9 - 1 }, shellImport.ShellIndex{ .offset = 12 >> 2, .len = 8 - 1 }, @@ -335,7 +335,7 @@ test "construct PackedUser section" { .name = "svc-bar", .gecos = "", .home = "/", - .shell = "/", + .shell = "/bin/zsh", } }; var shellIndex = testShellIndex(testing.allocator); const additional_gids = math.maxInt(u64);