Skip to content

Commit c2afd7e

Browse files
B. Wilsonxelxebar
authored andcommitted
Ignor expected FIFO exception in tests (#94)
1 parent 7e2ee6f commit c2afd7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fifo.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
string_concat("mkfifo ", FifoPath, MkFifoCmd), % no swipl predicate for this
1414
shell(MkFifoCmd, ExitCode),
1515
(ExitCode == 0 ->
16-
thread_create(fifo:process_fifo(FifoPath), _, [detached(true)])
16+
thread_create(
17+
catch(fifo:process_fifo(FifoPath), _, true),
18+
_, [detached(true)])
1719
; writeln(user_error, "Could not spawn command fifo!"))
1820
)))
1921
.

0 commit comments

Comments
 (0)