Skip to content

Commit

Permalink
Fix: disable thread spec when interpreted
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Feb 6, 2024
1 parent 60cef61 commit a5d8f64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/std/file_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ describe "File" do
end
end

{% if LibC.has_method?(:mkfifo) %}
{% if LibC.has_method?(:mkfifo) && !flag?(:interpreted) %}
# spec is disabled when interpreted because the interpreter doesn't
# support threads
it "opens fifo file as non-blocking" do
path = File.tempname("chardev")
ret = LibC.mkfifo(path, File::DEFAULT_CREATE_PERMISSIONS)
Expand Down

0 comments on commit a5d8f64

Please sign in to comment.