From fd3d182ee5d66df6068f43330ae9c9924d13144a Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Wed, 5 Aug 2026 12:12:08 +0200 Subject: [PATCH] Assuage NetBSD CI --- tests/core/math/rand/test_core_math_rand.odin | 6 ++++-- tests/core/slice/test_core_slice.odin | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/core/math/rand/test_core_math_rand.odin b/tests/core/math/rand/test_core_math_rand.odin index 5c2f4af84..965d315e1 100644 --- a/tests/core/math/rand/test_core_math_rand.odin +++ b/tests/core/math/rand/test_core_math_rand.odin @@ -10,7 +10,8 @@ Generator :: struct { biased: bool, } -@(test) +// Disable on NetBSD due to Illegal Instruction on CI, even with `microarch:native` +@(test, disabled=ODIN_OS == .NetBSD) test_prngs :: proc(t: ^testing.T) { gens := []Generator { { @@ -48,7 +49,8 @@ rand_determinism :: proc(t: ^testing.T, rng: Generator) { testing.expectf(t, first_value == second_value, "rng '%s' is non-deterministic.", rng.name) } -@(test) +// Disable on NetBSD due to Illegal Instruction on CI, even with `microarch:native` +@(test, disabled=ODIN_OS == .NetBSD) test_default_rand_determinism_user_set :: proc(t: ^testing.T) { rng_state_1 := rand.create(13) rng_state_2 := rand.create(13) diff --git a/tests/core/slice/test_core_slice.odin b/tests/core/slice/test_core_slice.odin index 98cb8dbac..eb630699f 100644 --- a/tests/core/slice/test_core_slice.odin +++ b/tests/core/slice/test_core_slice.odin @@ -225,7 +225,8 @@ UNIQUE_TEST_VECTORS :: [][2][]int{ {{1,2,4,4,5}, {1,2,4,5}}, } -@test +// Disable on NetBSD due to Illegal Instruction on CI, even with `microarch:native` +@(test, disabled=ODIN_OS == .NetBSD) test_unique :: proc(t: ^testing.T) { for v in UNIQUE_TEST_VECTORS { assorted := v[0]