-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviordownstreamAn issue with a third party project that uses Zig.An issue with a third party project that uses Zig.os-wasiWebAssembly System InterfaceWebAssembly System Interface
Milestone
Description
Zig Version
Steps to Reproduce and Observed Behavior
- Install Wasmtime 23.0.1 (maybe earlier?).
- Run the standard library tests with
-fwasmtime(but seestd.Build.Step.Run: Fix invocation syntax for Wasmtime 14+. #20745).
error: 'fs.test.test.file operations on directories' failed: expected error.IsDir, found fs.File{ .handle = 4 }
Unable to dump stack trace: not implemented for Wasm
Fails here:
Lines 767 to 769 in eac7fd4
| // Note: The `.mode = .read_write` is necessary to ensure the error occurs on all platforms. | |
| // TODO: Add a read-only test as well, see https://github.com/ziglang/zig/issues/5732 | |
| try testing.expectError(error.IsDir, ctx.dir.openFile(test_dir_name, .{ .mode = .read_write })); |
Expected Behavior
No failure.
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviordownstreamAn issue with a third party project that uses Zig.An issue with a third party project that uses Zig.os-wasiWebAssembly System InterfaceWebAssembly System Interface