diff --git a/test/benchee/system_test.exs b/test/benchee/system_test.exs index 1702063c..08772bda 100644 --- a/test/benchee/system_test.exs +++ b/test/benchee/system_test.exs @@ -143,6 +143,8 @@ defmodule Benchee.SystemTest do end # It may be compiled in a way that it doesn't but in the CI and dev machines it should be fine + # except for mac sometimes, where of course it isn't + @tag :guaranteed_jit test ".jit_enabled? should say true for versions > 24.0.0" do system_data = system(%Suite{}).system jit_enabled? = system_data.jit_enabled? diff --git a/test/test_helper.exs b/test/test_helper.exs index 96d1d383..039f804d 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -54,4 +54,14 @@ exclusions = exclusions end +# somehow on CI macos doesn't have the JIT enabled installed via brew: https://github.com/bencheeorg/benchee/pull/426 +exclusions = + case os do + :darwin -> + [{:guaranteed_jit, true} | exclusions] + + _ -> + exclusions + end + ExUnit.start(exclude: exclusions)