mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-14 09:44:26 +00:00
Assuage NetBSD CI
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user