From e5bf7ba6e31f41c3389c097999f571e2c3e6e21e Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Wed, 12 Aug 2026 13:59:51 +0200 Subject: [PATCH] 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 {