1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-01-12 16:51:07 +00:00

Fixes to misc-test: accept "localhost.<domain>" as well as "localhost"

Some operating systems, for example OpenBSD, use "localhost.<domain>"
instead of "localhost", so the "who-test" expecting "localhost" failed
on such systems.

(Please see 149859c5fecc..., which fixes this for the who-test already)
This commit is contained in:
Alexander Barton 2008-07-21 13:40:22 +02:00
parent 4467d127c2
commit 3f01324160

View File

@ -129,7 +129,7 @@ expect {
send "userhost nick\r" send "userhost nick\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
-re ":ngircd.test.server 302 nick :?nick=+.*@(localhost|127.0.0.1)" -re ":ngircd.test.server 302 nick :?nick=+.*@(localhos.*|127.0.0.1)"
} }
send "userhost doesnotexist\r" send "userhost doesnotexist\r"
@ -141,7 +141,7 @@ expect {
send "userhost nick doesnotexist nick doesnotexist\r" send "userhost nick doesnotexist nick doesnotexist\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
-re ":ngircd.test.server 302 nick :nick=+.*@(localhost|127.0.0.1) nick=+.*@(localhost|127.0.0.1)" -re ":ngircd.test.server 302 nick :nick=+.*@(localhos.*|127.0.0.1) nick=+.*@(localhos.*|127.0.0.1)"
} }
send "away :testing\r" send "away :testing\r"
@ -153,7 +153,7 @@ expect {
send "userhost nick nick nick nick nick nick\r" send "userhost nick nick nick nick nick nick\r"
expect { expect {
timeout { exit 1 } timeout { exit 1 }
-re ":ngircd.test.server 302 nick :nick=-.*@(localhost|127.0.0.1) nick=-.*@(localhost|127.0.0.1) nick=-.*@(localhost|127.0.0.1) nick=-.*@(localhost|127.0.0.1) nick=-.*@(localhost|127.0.0.1)\r" -re ":ngircd.test.server 302 nick :nick=-.*@(localhos.*|127.0.0.1) nick=-.*@(localhos.*|127.0.0.1) nick=-.*@(localhos.*|127.0.0.1) nick=-.*@(localhos.*|127.0.0.1) nick=-.*@(localhos.*|127.0.0.1)\r"
} }
send "quit\r" send "quit\r"