Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

los codos dos debugos la macosa #426

Merged
merged 2 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/benchee/system_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
10 changes: 10 additions & 0 deletions test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Loading