We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e752b5 + 0f94159 commit c4b9a11Copy full SHA for c4b9a11
irteus/irtx.l
@@ -88,7 +88,7 @@
88
(setq pname "/usr/X11R6/bin/cygX11-6.dll"))
89
90
;; for receiving Window Manager Messages
91
- (if (probe-file pname)
+ (if (and pname (probe-file pname))
92
(setq x-lib (load-foreign pname))
93
(setq x-lib (sys::sysmod)))
94
(defforeign SetWMProtocols x-lib "XSetWMProtocols" () :integer))
irteus/test/test-file.l
@@ -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