Assuage NetBSD CI

This commit is contained in:
Jeroen van Rijn
2026-08-05 12:12:08 +02:00
parent 4ef783d319
commit fd3d182ee5
2 changed files with 6 additions and 3 deletions

View File

@@ -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)

View File

@@ -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]