fix turbo-getent unit test
This commit is contained in:
parent
3fac6a82e5
commit
7a27c06f7b
@ -258,7 +258,6 @@ test "turbo-getent group" {
|
|||||||
var stderr = ArrayList(u8).init(testing.allocator);
|
var stderr = ArrayList(u8).init(testing.allocator);
|
||||||
defer stderr.deinit();
|
defer stderr.deinit();
|
||||||
|
|
||||||
if (true) return error.SkipZigTest;
|
|
||||||
{
|
{
|
||||||
const args = &[_][*:0]const u8{
|
const args = &[_][*:0]const u8{
|
||||||
"--db",
|
"--db",
|
||||||
@ -266,7 +265,7 @@ test "turbo-getent group" {
|
|||||||
"group",
|
"group",
|
||||||
"root",
|
"root",
|
||||||
"doesnotexist",
|
"doesnotexist",
|
||||||
"svc-bar",
|
"service-group",
|
||||||
"0",
|
"0",
|
||||||
"1",
|
"1",
|
||||||
};
|
};
|
||||||
@ -274,7 +273,8 @@ test "turbo-getent group" {
|
|||||||
try testing.expectEqual(got, 2);
|
try testing.expectEqual(got, 2);
|
||||||
const want =
|
const want =
|
||||||
\\root:x:0:
|
\\root:x:0:
|
||||||
\\svc-bar:x:128:root,vidmantas
|
\\service-group:x:100000:root,vidmantas
|
||||||
|
\\root:x:0:
|
||||||
\\
|
\\
|
||||||
;
|
;
|
||||||
try testing.expectEqualStrings(want, stdout.items);
|
try testing.expectEqualStrings(want, stdout.items);
|
||||||
|
Loading…
Reference in New Issue
Block a user