Skip to content

some WASI tests are disabled due to using cwd #5437

Description

@andrewrk

zig/lib/std/cache_hash.zig

Lines 537 to 540 in 49f3def

if (std.Target.current.os.tag == .wasi) {
// https://github.com/ziglang/zig/issues/5437
return error.SkipZigTest;
}

(there are several more instances in this file)

WASI is capable of passing these tests if we improve the cache hash API to use directory handles and somehow avoid using absolute paths. I'm not sure how to accomplish that, however, it's worth looking into. It does look like it would be possible to implement realpathat on Linux. I wonder if it is possible to implement realpathat on other operating systems.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    os-wasiWebAssembly System Interface

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions