diff options
| author | Alexander Barton <alex@barton.de> | 2008-07-21 13:40:22 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2008-07-21 13:40:22 +0200 |
| commit | 3f013241605484ac2b4dba6412ae7680a21ee46c (patch) | |
| tree | 5550adb8a315390257d01f45c21b678243809dc4 /src | |
| parent | 4467d127c2306c5bd0c0e3fe50ee470b604f5946 (diff) | |
| download | ngircd-3f013241605484ac2b4dba6412ae7680a21ee46c.tar.gz ngircd-3f013241605484ac2b4dba6412ae7680a21ee46c.zip | |
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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/testsuite/misc-test.e | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testsuite/misc-test.e b/src/testsuite/misc-test.e index f9142df2..0623024d 100644 --- a/src/testsuite/misc-test.e +++ b/src/testsuite/misc-test.e @@ -129,7 +129,7 @@ expect { send "userhost nick\r" expect { 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" @@ -141,7 +141,7 @@ expect { send "userhost nick doesnotexist nick doesnotexist\r" expect { 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" @@ -153,7 +153,7 @@ expect { send "userhost nick nick nick nick nick nick\r" expect { 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" |