tests: improve *error-output* errors test

This commit is contained in:
Daniel Kochmański 2016-11-19 22:10:27 +01:00
parent 77cebaef4a
commit 4bd6e91ddd

View file

@ -27,10 +27,17 @@
;;; Bug #43: Infinite loop when writing to stderr fails
;;; Reported by: Dmitri Pasechnik
;;; Date: 2015-05-06
#+unix ; Windows doesn't have /dev/...
;;;
;;; Reported: 2015-05-06 (Dmitri Pasechnik)
;;; Fixed: 2016-11-19 (Daniel Kochmański)
;;;
;;; Description: If `*error-output*' print causes infinite recursion
;;; this test will fail (ECL will segfault with exit code 11). If
;;; nothing extraordinary happens (even if we have debugger invoked),
;;; then EOF is encountered and ECL returns with 0 exit code.
#+unix ; Windows doesn't have /dev/...
(test executable.1.infinite-loop
(is-eql 0 (nth-value 1 (simple-run "Invalid syntax"
(is-eql 0 (nth-value 1 (simple-run "(print 'hi *error-output*"
"/dev/null"
"/dev/full"))))