From: Alexander Barton Date: Thu, 10 Nov 2011 10:54:22 +0000 (+0100) Subject: whois-test: handle local hostname = "localhost.localdomain" X-Git-Tag: rel-19-rc1~118 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=9e48f3f8f8c312ee20caef70cfb377a0d89260bb whois-test: handle local hostname = "localhost.localdomain" Use the pattern "localhost*" for valid local hostnames. --- diff --git a/src/testsuite/whois-test.e b/src/testsuite/whois-test.e index 7024d5ff..2aed6944 100644 --- a/src/testsuite/whois-test.e +++ b/src/testsuite/whois-test.e @@ -17,31 +17,31 @@ expect { send "whois nick\r" expect { timeout { exit 1 } - "311 nick nick ~user localhost \* :Real Name\r" + "311 nick nick ~user localhost* \* :Real Name\r" } send "whois *\r" expect { timeout { exit 1 } - "311 nick nick ~user localhost \* :Real Name\r" + "311 nick nick ~user localhost* \* :Real Name\r" } send "whois n*\r" expect { timeout { exit 1 } - "311 nick nick ~user localhost \* :Real Name\r" + "311 nick nick ~user localhost* \* :Real Name\r" } send "whois ?ick\r" expect { timeout { exit 1 } - "311 nick nick ~user localhost \* :Real Name\r" + "311 nick nick ~user localhost* \* :Real Name\r" } send "whois ????,n?*k\r" expect { timeout { exit 1 } - "311 nick nick ~user localhost \* :Real Name\r" + "311 nick nick ~user localhost* \* :Real Name\r" } send "quit\r"