From 4bd6e91ddd105bc1617c8191583457e513ddc329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kochma=C5=84ski?= Date: Sat, 19 Nov 2016 22:10:27 +0100 Subject: [PATCH] tests: improve *error-output* errors test --- src/tests/normal-tests/executable-cli.lsp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/tests/normal-tests/executable-cli.lsp b/src/tests/normal-tests/executable-cli.lsp index 2c29d3fc1..218f3bd41 100644 --- a/src/tests/normal-tests/executable-cli.lsp +++ b/src/tests/normal-tests/executable-cli.lsp @@ -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"))))