From e5bf7ba6e31f41c3389c097999f571e2c3e6e21e Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Wed, 12 Aug 2026 13:59:51 +0200 Subject: [PATCH 1/2] Skip some tests on riscv --- tests/core/net/test_core_net.odin | 5 +++++ tests/core/sync/test_core_sync.odin | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/tests/core/net/test_core_net.odin b/tests/core/net/test_core_net.odin index b0cf57cad..17eb3bdd0 100644 --- a/tests/core/net/test_core_net.odin +++ b/tests/core/net/test_core_net.odin @@ -608,6 +608,11 @@ test_udp_echo :: proc(t: ^testing.T) { test_dns_resolve :: proc(t: ^testing.T) { // NOTE: This test depends on external factors, so if it fails, an IP // address may have changed or become unavailable. + // It regularly fails on the RISC-V CI runners, so we skip it there + when ODIN_ARCH == .riscv64 { + log.infof("Skipped on riscv64") + return + } // The net API returns only one address per protocol version, and DNS // records can store many, so we'll have to check all possibilities. diff --git a/tests/core/sync/test_core_sync.odin b/tests/core/sync/test_core_sync.odin index d6a7a9517..1cc52ca3e 100644 --- a/tests/core/sync/test_core_sync.odin +++ b/tests/core/sync/test_core_sync.odin @@ -538,6 +538,14 @@ test_ticket_mutex :: proc(t: ^testing.T) { @test test_benaphore :: proc(t: ^testing.T) { + // NOTE(Jeroen): Regularly times out on the simulated RISC-V CI runners, + // so we're skipping the test there. + + when ODIN_ARCH == .riscv64 { + log.infof("Skipped on riscv64") + return + } + testing.set_fail_timeout(t, FAIL_TIME) Data :: struct { From 44b2f201f5d08102a12ea2147446611bc5f818a7 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Wed, 12 Aug 2026 14:09:07 +0200 Subject: [PATCH 2/2] Remove log --- tests/core/sync/test_core_sync.odin | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/core/sync/test_core_sync.odin b/tests/core/sync/test_core_sync.odin index 1cc52ca3e..28c144935 100644 --- a/tests/core/sync/test_core_sync.odin +++ b/tests/core/sync/test_core_sync.odin @@ -8,7 +8,6 @@ package test_core_sync import "base:intrinsics" -// import "core:log" import "core:sync" import "core:testing" import "core:thread" @@ -538,11 +537,9 @@ test_ticket_mutex :: proc(t: ^testing.T) { @test test_benaphore :: proc(t: ^testing.T) { - // NOTE(Jeroen): Regularly times out on the simulated RISC-V CI runners, - // so we're skipping the test there. - when ODIN_ARCH == .riscv64 { - log.infof("Skipped on riscv64") + // NOTE(Jeroen): Regularly times out on the simulated RISC-V CI runners, + // so we're skipping the test there. return }