Commit 1ec9d050 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Decrease the all file descriptors by one, now that the server no

longer listens for a mux.  Test that protocol B is unsupported.
parent f30e63dd
......@@ -2,35 +2,34 @@
# This test makes some assumptions:
# The server reserves file descriptor 0-11 for internal use.
# File descriptor 12 is used to listen for clients.
# File descriptor 13 is used to listen for muxes.
lyskomd_start "" "Open files: 18"
lyskomd_start "" "Open files: 17"
# fd 14
# fd 13
client_start 1
talk_to client 1
send "A3Hone\n"
simple_expect "LysKOM" "one up"
# fd 15
# fd 14
client_start 2
talk_to client 2
send "A3Htwo\n"
simple_expect "LysKOM" "two up"
# fd 16
# fd 15
client_start 3
talk_to client 3
send "A5Hthree\n"
simple_expect "LysKOM" "three up"
# fd 17
# fd 16
client_start 4
talk_to client 4
send "A4Hfour\n"
simple_expect "LysKOM" "four up"
# fd 18 -- not available
# fd 17 -- not available
client_start 5
talk_to client 5
simple_expect "%% No connections left." "five closing down"
......@@ -45,7 +44,7 @@ simple_expect ":0 11"
talk_to client 4
simple_expect ":0 11"
# fd 18 -- still not available
# fd 17 -- still not available
client_start 6
talk_to client 6
simple_expect "%% No connections left." "six closing down"
......@@ -63,7 +62,7 @@ client_death 6
## talk_to client 4
## simple_expect ":0 11"
# Shut down fd 16
# Shut down fd 15
talk_to client 3
send "1 55 3\n"
simple_expect "=1"
......@@ -77,19 +76,20 @@ simple_expect ":2 13 0 3"
talk_to client 4
simple_expect ":2 13 0 3"
# fd 16
# fd 15
client_start 7
talk_to client 7
send "A5Hseven\n"
simple_expect "LysKOM" "seven up"
# fd 18 -- not available again
# fd 17 -- not available again
client_start 8
talk_to client 8
simple_expect "%% No connections left." "eight closing down"
client_death 8
# The minute should not be up yet.
# We don't get these messages, since they are only sent at most once
# per 60 seconds.
##
## talk_to client 1
## simple_expect ":0 11"
......@@ -158,6 +158,12 @@ simple_expect "=27"
simple_expect ":2 13 0 5"
client_death 7
client_start 8
talk_to client 8
send "B\n"
simple_expect "%%LysKOM unsupported protocol\\."
client_death 8
# Test shutdown via a signal
system "kill -HUP $lyskomd_pid"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment