Skip to content

Commit

Permalink
[ fix #3103, #3104 ] Disable broken tests
Browse files Browse the repository at this point in the history
Racket does not have FFI bindings for these primitives.
  • Loading branch information
gallais committed Nov 29, 2023
1 parent 8fe02aa commit 1a1b5fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/Main.idr
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ refcTests = testsInDir "refc" "Reference counting C backend" {codegen = Just C}

racketTests : IO TestPool
racketTests = testsInDir "racket" "Racket backend" {codegen = Just Racket}
{ pred = not . (`elem` ["conditions006", "conditions007"]) }

nodeTests : IO TestPool
nodeTests = testsInDir "node" "Node backend" {codegen = Just Node}
Expand Down
5 changes: 4 additions & 1 deletion tests/racket/conditions006/Main.idr
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Disabled for now: no working
-- conditionWaitTimeout
-- for racket

-- Idris2

import System
Expand All @@ -16,4 +20,3 @@ main =
sleep 2
putStrLn "Sorry I'm late child!"
threadWait t

7 changes: 5 additions & 2 deletions tests/racket/conditions007/Main.idr
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Disabled for now: no working
-- conditionWaitTimeout
-- for racket

-- Idris2

import System
Expand Down Expand Up @@ -31,6 +35,5 @@ main =

sleep m
putStrLn "Sorry I'm late children! Weren't there more of you?..."
for impatients $ \t => threadWait t
for_ impatients $ \t => threadWait t
sleep 1

0 comments on commit 1a1b5fc

Please sign in to comment.