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" {...@@ -352,6 +352,7 @@ test "openDir" {
352352
353test "accessAbsolute" {353test "accessAbsolute" {
354 if (native_os == .wasi) return error.SkipZigTest;354 if (native_os == .wasi) return error.SkipZigTest;
355 if (native_os == .openbsd) return error.SkipZigTest;
355356
356 var tmp = tmpDir(.{});357 var tmp = tmpDir(.{});
357 defer tmp.cleanup();358 defer tmp.cleanup();
...@@ -364,6 +365,7 @@ test "accessAbsolute" {...@@ -364,6 +365,7 @@ test "accessAbsolute" {
364365
365test "openDirAbsolute" {366test "openDirAbsolute" {
366 if (native_os == .wasi) return error.SkipZigTest;367 if (native_os == .wasi) return error.SkipZigTest;
368 if (native_os == .openbsd) return error.SkipZigTest;
367369
368 var tmp = tmpDir(.{});370 var tmp = tmpDir(.{});
369 defer tmp.cleanup();371 defer tmp.cleanup();
...@@ -453,6 +455,7 @@ test "openDir non-cwd parent '..'" {...@@ -453,6 +455,7 @@ test "openDir non-cwd parent '..'" {
453455
454test "readLinkAbsolute" {456test "readLinkAbsolute" {
455 if (native_os == .wasi) return error.SkipZigTest;457 if (native_os == .wasi) return error.SkipZigTest;
458 if (native_os == .openbsd) return error.SkipZigTest;
456459
457 var tmp = tmpDir(.{});460 var tmp = tmpDir(.{});
458 defer tmp.cleanup();461 defer tmp.cleanup();
...@@ -1059,6 +1062,7 @@ test "rename" {...@@ -1059,6 +1062,7 @@ test "rename" {
10591062
1060test "renameAbsolute" {1063test "renameAbsolute" {
1061 if (native_os == .wasi) return error.SkipZigTest;1064 if (native_os == .wasi) return error.SkipZigTest;
1065 if (native_os == .openbsd) return error.SkipZigTest;
10621066
1063 var tmp_dir = tmpDir(.{});1067 var tmp_dir = tmpDir(.{});
1064 defer tmp_dir.cleanup();1068 defer tmp_dir.cleanup();
...@@ -1962,6 +1966,7 @@ test "'.' and '..' in fs.Dir functions" {...@@ -1962,6 +1966,7 @@ test "'.' and '..' in fs.Dir functions" {
19621966
1963test "'.' and '..' in absolute functions" {1967test "'.' and '..' in absolute functions" {
1964 if (native_os == .wasi) return error.SkipZigTest;1968 if (native_os == .wasi) return error.SkipZigTest;
1969 if (native_os == .openbsd) return error.SkipZigTest;
19651970
1966 var tmp = tmpDir(.{});1971 var tmp = tmpDir(.{});
1967 defer tmp.cleanup();1972 defer tmp.cleanup();
lib/std/posix/test.zig+3
...@@ -46,6 +46,7 @@ test "check WASI CWD" {...@@ -46,6 +46,7 @@ test "check WASI CWD" {
46test "open smoke test" {46test "open smoke test" {
47 if (native_os == .wasi) return error.SkipZigTest;47 if (native_os == .wasi) return error.SkipZigTest;
48 if (native_os == .windows) return error.SkipZigTest;48 if (native_os == .windows) return error.SkipZigTest;
49 if (native_os == .openbsd) return error.SkipZigTest;
4950
50 // TODO verify file attributes using `fstat`51 // TODO verify file attributes using `fstat`
5152
...@@ -765,6 +766,7 @@ test "POSIX file locking with fcntl" {...@@ -765,6 +766,7 @@ test "POSIX file locking with fcntl" {
765test "rename smoke test" {766test "rename smoke test" {
766 if (native_os == .wasi) return error.SkipZigTest;767 if (native_os == .wasi) return error.SkipZigTest;
767 if (native_os == .windows) return error.SkipZigTest;768 if (native_os == .windows) return error.SkipZigTest;
769 if (native_os == .openbsd) return error.SkipZigTest;
768770
769 var tmp = tmpDir(.{});771 var tmp = tmpDir(.{});
770 defer tmp.cleanup();772 defer tmp.cleanup();
...@@ -833,6 +835,7 @@ test "rename smoke test" {...@@ -833,6 +835,7 @@ test "rename smoke test" {
833test "access smoke test" {835test "access smoke test" {
834 if (native_os == .wasi) return error.SkipZigTest;836 if (native_os == .wasi) return error.SkipZigTest;
835 if (native_os == .windows) return error.SkipZigTest;837 if (native_os == .windows) return error.SkipZigTest;
838 if (native_os == .openbsd) return error.SkipZigTest;
836839
837 var tmp = tmpDir(.{});840 var tmp = tmpDir(.{});
838 defer tmp.cleanup();841 defer tmp.cleanup();