From a5d8f64b19d0ac2419bef1e2e1576c5871d0c7e2 Mon Sep 17 00:00:00 2001 From: Julien Portalier Date: Tue, 6 Feb 2024 18:07:29 +0100 Subject: [PATCH] Fix: disable thread spec when interpreted --- spec/std/file_spec.cr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/std/file_spec.cr b/spec/std/file_spec.cr index 14029424e005..1e9a9f53ae32 100644 --- a/spec/std/file_spec.cr +++ b/spec/std/file_spec.cr @@ -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)