Commit 14cb8009 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

A client dies immediately when it receives %% No connections left, so

the test case should not expect it to live longer.  Renumber the
ref-nos.  The nologin file exists in the build directory, not in
srcdir.
parent 0db65707
......@@ -137,32 +137,31 @@ client_start 4
talk_to client 4
send "A[holl "DejaGnu Test Suite"]\n"
simple_expect "%% No connections left."
client_death 4
talk_to client 1
send "1000 55 0\n"
simple_expect "=1000"
send "1003 55 0\n"
simple_expect "=1003"
client_death 1
talk_to client 2
send "1000 55 0\n"
simple_expect "=1000"
send "1004 55 0\n"
simple_expect "=1004"
client_death 2
talk_to client 3
send "1000 55 0\n"
simple_expect "=1000"
send "1005 55 0\n"
simple_expect "=1005"
client_death 3
kill_client 4
# Check that nologin file actually works
set fp [open "$srcdir/nologin" "w+"]
set fp [open "nologin" "w+"]
close $fp
client_start_fail 1 "%% No logins allowed."
system "rm -f $srcdir/nologin"
system "rm -f nologin"
# Finish with lots of clients connected
......@@ -185,8 +184,8 @@ talk_to client 0
kom_login 5 "gazonk" 0
kom_enable 255
send "9999 44 0\n"
simple_expect "=9999"
send "1006 44 0\n"
simple_expect "=1006"
client_death 0
client_death 1
......
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