Skip to content

Commit

Permalink
Fix Crystal::Loader.default_search_paths spec for macOS (#15135)
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored Oct 29, 2024
1 parent e60cb73 commit 6118fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/compiler/loader/unix_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe Crystal::Loader do
with_env "LD_LIBRARY_PATH": "ld1::ld2", "DYLD_LIBRARY_PATH": nil do
search_paths = Crystal::Loader.default_search_paths
{% if flag?(:darwin) %}
search_paths.should eq ["/usr/lib", "/usr/local/lib"]
search_paths[-2..].should eq ["/usr/lib", "/usr/local/lib"]
{% else %}
search_paths[0, 2].should eq ["ld1", "ld2"]
{% if flag?(:android) %}
Expand Down

0 comments on commit 6118fa2

Please sign in to comment.