Skip to content

Commit 07a9111

Browse files
committed
std: Disable link with relative paths test for mips64(el).
This started failing with LLVM 20 for unclear reasons: test-std └─ run test std-mips64-linux.4.19...6.13.4-gnuabi64.2.28-mips64r2-Debug-libc 2798/2878 passed, 2 failed, 78 skipped error: 'posix.test.test.link with relative paths' failed: expected 2, found 0 /home/alexrp/Source/ziglang/zig-llvm20/lib/std/testing.zig:103:17: 0x1d9e5bf in expectEqualInner__anon_47031 (test) return error.TestExpectedEqual; ^ /home/alexrp/Source/ziglang/zig-llvm20/lib/std/posix/test.zig:311:9: 0x3650f57 in test.link with relative paths (test) try testing.expectEqual(@as(@typeof(nstat.nlink), 2), nstat.nlink); ^ error: 'posix.test.test.linkat with different directories' failed: expected 2, found 0 /home/alexrp/Source/ziglang/zig-llvm20/lib/std/testing.zig:103:17: 0x1d9e5bf in expectEqualInner__anon_47031 (test) return error.TestExpectedEqual; ^ /home/alexrp/Source/ziglang/zig-llvm20/lib/std/posix/test.zig:355:9: 0x3653377 in test.linkat with different directories (test) try testing.expectEqual(@as(@typeof(nstat.nlink), 2), nstat.nlink); ^ Unfortunately, neither GDB nor LLDB want to play nice with qemu-mips64(el) at the moment, so I can't easily debug this.
1 parent e56566e commit 07a9111

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/std/posix/test.zig

+1
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ fn testReadlink(target_path: []const u8, symlink_path: []const u8) !void {
275275
test "link with relative paths" {
276276
if (native_os == .wasi) return error.SkipZigTest; // Can link, but can't change into tmpDir
277277
if (builtin.cpu.arch == .riscv32 and builtin.os.tag == .linux and !builtin.link_libc) return error.SkipZigTest; // No `fstat()`.
278+
if (builtin.cpu.arch.isMIPS64()) return error.SkipZigTest; // `nstat.nlink` assertion is failing with LLVM 20+ for unclear reasons.
278279

279280
switch (native_os) {
280281
.wasi, .linux, .solaris, .illumos => {},

0 commit comments

Comments
 (0)