summaryrefslogtreecommitdiff
path: root/test/stdout
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-04-18 15:36:54 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2020-04-22 19:27:27 +0100
commit1950cf85b47f7c8407b3318a4f8fc57c0af6d6ba (patch)
tree205c52910616b408c0c110b3c187414cc8ca5db5 /test/stdout
parentaccf9211ea33262b8865805a4f61155f26320444 (diff)
readsocket expansion: response caching
Diffstat (limited to 'test/stdout')
-rw-r--r--test/stdout/037356
1 files changed, 44 insertions, 12 deletions
diff --git a/test/stdout/0373 b/test/stdout/0373
index a4acc6591..513f36468 100644
--- a/test/stdout/0373
+++ b/test/stdout/0373
@@ -1,6 +1,8 @@
+> connfail cases (no server)
> Failed: failed to connect to socket TESTSUITE/test-socket: No such file or directory
> 2 ++ no socket ++
>
+> unix-socket cases
> 1 >>ANSWER-1
<<
> 2 >>ANSWER-2<<
@@ -13,22 +15,36 @@
> 9 >>sock error<<
>
451 Temporary local problem - please try later
-> 1 >>ANSWER-1
+> ipv4 cases
+> 1 ANSWER-1 >>ANSWER-1
<<
-> 2 >>ANSWER-2<<
-> 3 >>ANSWER-3*EOL*<<
-> 4 >>ANSWER-4*EOL*<<
-> 5 >>ANSWER-5<<
-> 6 >><<
-> 7 >><<
+> 2 ANSWER-2 >>ANSWER-2<<
+> 3 ANSWER-3*EOL* >>ANSWER-3*EOL*<<
+> 4 ANSWER-4*EOL* >>ANSWER-4*EOL*<<
+> 5 ANSWER-5 >>ANSWER-5<<
+> 6 >><<
+> 7 >><<
> Failed: socket read timed out
-> 9 >>sock error<<
-> 10 >>ANSWER-10
-<<
-> 11 >>ANSWER-11
+> 9 sock error >>sock error<<
+> 10 ANSWER-10\n >>ANSWER-10
<<
+> 11 ANSWER-11 >><<
>
-> Failed: bad time value NULL
+> Failed: failed to connect to any address for 127.0.0.1: Connection refused
+>
+> caching of response value
+> 1 >>ANSWER-1
+<<
+> 1+ >>ANSWER-1
+<<
+> 2 >>ANSWER-2
+<<
+> 2- >>expected failure<<
+> 1- >>expected failure<<
+> 1+ >>ANSWER-1
+<<
+> 1- >>ANSWER-1
+<<
>
******** SERVER ********
@@ -129,3 +145,19 @@ Connection request from [ip4.ip4.ip4.ip4]
>LF>ANSWER-11
>*eof
End of script
+Listening on TESTSUITE/test-socket ...
+Connection request
+QUERY-1
+>LF>ANSWER-1
+>*eof
+Listening on TESTSUITE/test-socket ...
+Connection request
+QUERY-2
+>LF>ANSWER-2
+>*eof
+Listening on TESTSUITE/test-socket ...
+Connection request
+QUERY-1
+>LF>ANSWER-1
+>*eof
+End of script