1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-27 20:36:18 +00:00

Test suite: wait for ERROR message on QUIT

Wait for the "ERROR :Closing connection" message sent by ngIRCd when
handling the QUIT command, do not wait for "Connection closed" which is
actually output by the telnet(1) command and is implementation
dependant! For example, on Haiku OS, this is not always(!) echoed (the
command seems to hang sometimes?) which results in unpredictable
failures in the test suite ...
This commit is contained in:
Alexander Barton 2024-04-02 22:01:00 +02:00
parent 22a8744476
commit a8a37b681e
16 changed files with 16 additions and 17 deletions

View File

@ -103,5 +103,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -25,7 +25,7 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }
exit $r exit $r

View File

@ -17,5 +17,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -17,6 +17,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -16,5 +16,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -110,5 +110,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -108,5 +108,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -109,5 +109,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -148,5 +148,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -160,5 +160,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"ERROR" "ERROR :Closing connection"
} }

View File

@ -171,5 +171,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -29,5 +29,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -46,5 +46,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"ERROR" "ERROR :Closing connection"
} }

View File

@ -72,5 +72,5 @@ sleep 1
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -199,5 +199,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"Connection closed" "ERROR :Closing connection"
} }

View File

@ -73,5 +73,5 @@ expect {
send "quit\r" send "quit\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
"ERROR" "ERROR :Closing connection"
} }