]> arthur.barton.de Git - ngircd-alex.git/commitdiff
whois-test: handle local hostname = "localhost.localdomain"
authorAlexander Barton <alex@barton.de>
Thu, 10 Nov 2011 10:54:22 +0000 (11:54 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 10 Nov 2011 10:54:22 +0000 (11:54 +0100)
Use the pattern "localhost*" for valid local hostnames.

src/testsuite/whois-test.e

index 7024d5ff74efa3c3a51d674d30bc13c9f748593e..2aed6944f2ebd60dcfa1bc9ecdcb1535113603b6 100644 (file)
@@ -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"