Skip to content

Commit

Permalink
fixup! OpenBSD: fix or disable broken specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Oct 22, 2024
1 parent 4f00e51 commit d8c7592
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/compiler/loader/unix_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ describe Crystal::Loader do
exc = expect_raises(Crystal::Loader::LoadError, /no such file|not found|cannot open/i) do
Crystal::Loader.parse(["-l", "foo/bar.o"], search_paths: [] of String)
end
exc.message.should contain File.join(Dir.current, "foo", "bar.o")
{% if flag?(:openbsd) %}
exc.message.should contain "foo/bar.o"
{% else %}
exc.message.should contain File.join(Dir.current, "foo", "bar.o")
{% end %}
end
end

Expand Down

0 comments on commit d8c7592

Please sign in to comment.