authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-12-01 07:34:52+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-12-16 06:25:27+01:00
logb675223eb5f52408fb35c08b0ad25223b04e2927
tree4a5dd66ff0d617257004d38a57e49ac887dca81f
parent215b250e6b94edf8c00606ab73a9e93dbd80c150
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std: disable tests that depend on getFdPath on openbsd


2 files changed, 8 insertions(+), 0 deletions(-)

lib/std/fs/test.zig+5
......@@ -352,6 +352,7 @@ test "openDir" {
352352
353353test "accessAbsolute" {
354354 if (native_os == .wasi) return error.SkipZigTest;
355 if (native_os == .openbsd) return error.SkipZigTest;
355356
356357 var tmp = tmpDir(.{});
357358 defer tmp.cleanup();
......@@ -364,6 +365,7 @@ test "accessAbsolute" {
364365
365366test "openDirAbsolute" {
366367 if (native_os == .wasi) return error.SkipZigTest;
368 if (native_os == .openbsd) return error.SkipZigTest;
367369
368370 var tmp = tmpDir(.{});
369371 defer tmp.cleanup();
......@@ -453,6 +455,7 @@ test "openDir non-cwd parent '..'" {
453455
454456test "readLinkAbsolute" {
455457 if (native_os == .wasi) return error.SkipZigTest;
458 if (native_os == .openbsd) return error.SkipZigTest;
456459
457460 var tmp = tmpDir(.{});
458461 defer tmp.cleanup();
......@@ -1059,6 +1062,7 @@ test "rename" {
10591062
10601063test "renameAbsolute" {
10611064 if (native_os == .wasi) return error.SkipZigTest;
1065 if (native_os == .openbsd) return error.SkipZigTest;
10621066
10631067 var tmp_dir = tmpDir(.{});
10641068 defer tmp_dir.cleanup();
......@@ -1962,6 +1966,7 @@ test "'.' and '..' in fs.Dir functions" {
19621966
19631967test "'.' and '..' in absolute functions" {
19641968 if (native_os == .wasi) return error.SkipZigTest;
1969 if (native_os == .openbsd) return error.SkipZigTest;
19651970
19661971 var tmp = tmpDir(.{});
19671972 defer tmp.cleanup();
lib/std/posix/test.zig+3
......@@ -46,6 +46,7 @@ test "check WASI CWD" {
4646test "open smoke test" {
4747 if (native_os == .wasi) return error.SkipZigTest;
4848 if (native_os == .windows) return error.SkipZigTest;
49 if (native_os == .openbsd) return error.SkipZigTest;
4950
5051 // TODO verify file attributes using `fstat`
5152
......@@ -765,6 +766,7 @@ test "POSIX file locking with fcntl" {
765766test "rename smoke test" {
766767 if (native_os == .wasi) return error.SkipZigTest;
767768 if (native_os == .windows) return error.SkipZigTest;
769 if (native_os == .openbsd) return error.SkipZigTest;
768770
769771 var tmp = tmpDir(.{});
770772 defer tmp.cleanup();
......@@ -833,6 +835,7 @@ test "rename smoke test" {
833835test "access smoke test" {
834836 if (native_os == .wasi) return error.SkipZigTest;
835837 if (native_os == .windows) return error.SkipZigTest;
838 if (native_os == .openbsd) return error.SkipZigTest;
836839
837840 var tmp = tmpDir(.{});
838841 defer tmp.cleanup();