mirror of
https://github.com/janet-lang/janet
synced 2026-04-18 12:51:27 +00:00
Make sure to run test with old flags as well.
This commit is contained in:
@@ -166,7 +166,22 @@
|
||||
(def path (if (or (= os :mingw) (= os :windows))
|
||||
"NUL"
|
||||
"/dev/null"))
|
||||
(os/open path :wW))
|
||||
(os/open path :w))
|
||||
(with [dn (devnull)]
|
||||
(os/execute [;run janet
|
||||
"-e"
|
||||
"(print :foo) (eprint :bar)"]
|
||||
:px
|
||||
{:out dn :err dn})))
|
||||
|
||||
# os/execute IO redirection with more windows flags
|
||||
(assert-no-error "IO redirection more windows flags"
|
||||
(defn devnull []
|
||||
(def os (os/which))
|
||||
(def path (if (or (= os :mingw) (= os :windows))
|
||||
"NUL"
|
||||
"/dev/null"))
|
||||
(os/open path :wWI))
|
||||
(with [dn (devnull)]
|
||||
(os/execute [;run janet
|
||||
"-e"
|
||||
|
||||
Reference in New Issue
Block a user