From b9d9c5a27bea03802901872e0e056fb97b4c30a6 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Fri, 8 Apr 2016 19:37:13 +0100 Subject: Testsuite: 0322 (pipelining errors) avoid triggering SIGPIPE This was timing-dependent; if the exim closed the connection before the script wrote to it _after_ triggerring an error, EPIPE/SIGPIPE. Unexplained as yet: why runtest (perl) saw this as a 141 server returncode (NB: 141-128 = 13 = SIGPIPE, the shell behaviour) when "perldoc -v '$?'" (which runtest is coded to) says that a signum should be in the top nibble of 16b. --- test/scripts/0000-Basic/0322 | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) (limited to 'test/scripts/0000-Basic') diff --git a/test/scripts/0000-Basic/0322 b/test/scripts/0000-Basic/0322 index e317eb784..91fabeeb7 100644 --- a/test/scripts/0000-Basic/0322 +++ b/test/scripts/0000-Basic/0322 @@ -13,8 +13,7 @@ RCPT TO: 250 Recipient OK DATA > -QUIT -250 OK +*eof **** exim -odi x@test.ex **** @@ -29,9 +28,7 @@ MAIL FROM: RCPT TO: > DATA -550 Failed DATA -QUIT -250 OK +*eof **** exim -odi x@test.ex **** @@ -46,9 +43,7 @@ MAIL FROM: RCPT TO: 550 Can't send RCPT DATA -550 Can't send DATA -QUIT -250 OK +*eof **** exim -odi x@test.ex **** @@ -68,9 +63,7 @@ RCPT TO: RCPT TO: 250 Third RCPT OK DATA -550 Failed DATA -QUIT -250 OK +*eof **** exim -odi x@test.ex y@test.ex z@test.ex **** @@ -109,8 +102,7 @@ RCPT TO: 250 Recipient OK DATA > -QUIT -250 OK +*eof **** exim -odi x@test.ex **** @@ -123,10 +115,7 @@ MAIL FROM: 250 Sender OK RCPT TO: > -DATA -550 Failed DATA -QUIT -250 OK +*eof **** exim -odi x@test.ex **** @@ -137,12 +126,7 @@ EHLO 250 HELP MAIL FROM: > -RCPT TO: -550 Can't send RCPT -DATA -550 Can't send DATA -QUIT -250 OK +*eof **** exim -odi x@test.ex **** @@ -158,12 +142,7 @@ RCPT TO: RCPT TO: > 250 Second RCPT malformed -RCPT TO: -250 Third RCPT OK -DATA -550 Failed DATA -QUIT -250 OK +*eof **** exim -odi x@test.ex y@test.ex z@test.ex **** -- cgit v1.2.3