| ... | @@ -845,9 +845,11 @@ test "file operations on directories" { | ... | @@ -845,9 +845,11 @@ test "file operations on directories" { |
| 845 | defer handle.close(io); | 845 | defer handle.close(io); |
| 846 | | 846 | |
| 847 | // Reading from the handle should fail | 847 | // Reading from the handle should fail |
| 848 | var buf: [1]u8 = undefined; | 848 | if (native_os != .netbsd) { |
| 849 | try expectError(error.IsDir, handle.readStreaming(io, &.{&buf})); | 849 | var buf: [1]u8 = undefined; |
| 850 | try expectError(error.IsDir, handle.readPositional(io, &.{&buf}, 0)); | 850 | try expectError(error.IsDir, handle.readStreaming(io, &.{&buf})); |
| | 851 | try expectError(error.IsDir, handle.readPositional(io, &.{&buf}, 0)); |
| | 852 | } |
| 851 | } | 853 | } |
| 852 | try expectError(error.IsDir, ctx.dir.openFile(io, test_dir_name, .{ .allow_directory = false, .mode = .read_only })); | 854 | try expectError(error.IsDir, ctx.dir.openFile(io, test_dir_name, .{ .allow_directory = false, .mode = .read_only })); |
| 853 | | 855 | |