Skip to content

go-stdtest: the remaining failures #367

Backlog

Description

@progrium

After #366, zig build go-stdtest -Doptimize=ReleaseSafe still fails 7 top-level tests. These are from a run on hcpu with linux/amd64, in a container. Before #366, the failures were the same on h9-linux-amd and on h9-mac (linux/arm64).

os

  • TestHardLink: link in the in-memory overlay copies the file with an exclusive create, so the two names aren't one file (os.SameFile is false, and later writes aren't shared). Fixing this needs a design change, because the overlay tree has one name per node (src/kern/dev/overlay.zig). A host tree and a 9P2000.L mount already make real links.
  • TestLongPath: this fails only because of the same hard link. It checks that link.txt's size follows a truncate of bar.txt.
  • TestRootRenameAfterOpen: after the parent of an open directory fd is renamed, openat(fd, "f") is ENOENT. The *at calls name their dirfd by its path (fd2path in at() in src/abi/linux/sys.zig), and that path is stale after the rename.
  • TestMkdirStickyUmask: mkdir with S_ISVTX gives drwx------ where the test wants dtrwx------. Plan 9 modes have no sticky bit, and the Linux layer doesn't keep one.

syscall

  • TestSCMCredentials: on a SOCK_DGRAM socketpair with SO_PASSCRED, a sendmsg of zero bytes carrying SCM_CREDENTIALS reaches the reader with no control data, so oobn is 0 where the test wants 32. rwv and msgSockRwv skip a zero-length write and read entirely, so no empty datagram goes through the pipe and the credential batch is never taken (scmConsumed). The stream case passes.

runtime

These look like timing tests, and both fail under load. They need a check on an idle host before anything is changed:

  • TestDebugLogInterleaving: the log shards come out in a different order than the test expects.
  • TestRuntimeLockMetricsAndProfile (runtime.lock/sample-1): this fails on amd64 only, including on h9-linux-amd with 64 CPUs.

The output is in zig-out/go-stdtest/{os,syscall,runtime}.out after a run.

Activity

  1. self-assigned this
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions