1
Fork 0

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
1 changed files with 2 additions and 2 deletions

View File

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