Skip to content

Commit 8f66a21

Browse files
committed
irteus/test/test-file.l : add test code to check irteusx errors when a file named 'NIL' exists
1 parent 6e752b5 commit 8f66a21

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

irteus/test/test-file.l

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
;; test code for probe-file
2+
3+
(require :unittest "lib/llib/unittest.l")
4+
(init-unit-test)
5+
6+
;; irteusx errors when a file named 'NIL' exists https://github.com/euslisp/jskeus/pull/618
7+
(deftest nil-file-with-irtx
8+
(let ()
9+
(unix::chdir "/tmp")
10+
(with-open-file (f "NIL" :direction :output)(format f "NIL"))
11+
(assert (load "irteus/irtx.l"))
12+
))
13+
14+
15+
(run-all-tests)
16+
(exit)

0 commit comments

Comments
 (0)