authorgravatar for pat.github@tullmann.orgPat Tullmann <pat.github@tullmann.org> 2024-01-06 13:22:14-08:00
committergravatar for pat.github@tullmann.orgPat Tullmann <pat.github@tullmann.org> 2024-01-16 13:49:00-08:00
log95a0e127b3f9528d25e0aefefc238d082a57bdc3
tree9eda8344da3f3511b825bf8dbb5e45ac2a419dd4
parentc4a1b54ebefb77122d2055b09bc0bf01bbc1d8b6

std/fs/test.zig: quote . and .. in test names

The test runner uses "." in its output between the test module and the test name, so quote the leading '.' in these test names to make them easier to read.

1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/fs/test.zig+4-4
......@@ -317,14 +317,14 @@ test "openDirAbsolute" {
317317 }
318318}
319319
320test "openDir cwd parent .." {
320test "openDir cwd parent '..'" {
321321 if (builtin.os.tag == .wasi) return error.SkipZigTest;
322322
323323 var dir = try fs.cwd().openDir("..", .{});
324324 defer dir.close();
325325}
326326
327test "openDir non-cwd parent .." {
327test "openDir non-cwd parent '..'" {
328328 switch (builtin.os.tag) {
329329 .wasi, .netbsd, .openbsd => return error.SkipZigTest,
330330 else => {},
......@@ -1674,7 +1674,7 @@ test "walker without fully iterating" {
16741674 try testing.expectEqual(@as(usize, 1), num_walked);
16751675}
16761676
1677test ". and .. in fs.Dir functions" {
1677test "'.' and '..' in fs.Dir functions" {
16781678 if (builtin.os.tag == .wasi and builtin.link_libc) return error.SkipZigTest;
16791679
16801680 if (builtin.os.tag == .windows and builtin.cpu.arch == .aarch64) {
......@@ -1714,7 +1714,7 @@ test ". and .. in fs.Dir functions" {
17141714 }.impl);
17151715}
17161716
1717test ". and .. in absolute functions" {
1717test "'.' and '..' in absolute functions" {
17181718 if (builtin.os.tag == .wasi) return error.SkipZigTest;
17191719
17201720 var tmp = tmpDir(.{});