fix shell unit test

This commit is contained in:
Motiejus Jakštys 2022-03-16 07:12:35 +02:00 committed by Motiejus Jakštys
parent c721fa6d5d
commit d526f1fab8

View File

@ -297,7 +297,7 @@ fn testShellIndex(allocator: Allocator) StringHashMap(u6) {
} }
const test_shell_reader = shellImport.ShellReader{ const test_shell_reader = shellImport.ShellReader{
.section_blob = "/bin/bash000/bin/zsh", .section_blob = "/bin/bash.../bin/zsh",
.section_index = &[_]shellImport.ShellIndex{ .section_index = &[_]shellImport.ShellIndex{
shellImport.ShellIndex{ .offset = 0, .len = 9 - 1 }, shellImport.ShellIndex{ .offset = 0, .len = 9 - 1 },
shellImport.ShellIndex{ .offset = 12 >> 2, .len = 8 - 1 }, shellImport.ShellIndex{ .offset = 12 >> 2, .len = 8 - 1 },
@ -335,7 +335,7 @@ test "construct PackedUser section" {
.name = "svc-bar", .name = "svc-bar",
.gecos = "", .gecos = "",
.home = "/", .home = "/",
.shell = "/", .shell = "/bin/zsh",
} }; } };
var shellIndex = testShellIndex(testing.allocator); var shellIndex = testShellIndex(testing.allocator);
const additional_gids = math.maxInt(u64); const additional_gids = math.maxInt(u64);