-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix from Xueron Nee <[email protected]> for -l args problems.
Added test cases to t/00-startup.t to insure this doesn't break. git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@521 b0b603af-a30f-0410-a34e-baf09ae79d0b
- Loading branch information
plindner
committed
Apr 18, 2007
1 parent
8464932
commit 6fcf0be
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
#!/usr/bin/perl | ||
|
||
use strict; | ||
use Test::More tests => 1; | ||
use Test::More tests => 2; | ||
use FindBin qw($Bin); | ||
use lib "$Bin/lib"; | ||
use MemcachedTest; | ||
|
||
my $server = new_memcached(); | ||
|
||
ok($server, "started the server"); | ||
|
||
eval { | ||
my $server = new_memcached("-l fooble"); | ||
}; | ||
ok($@, "Died with illegal -l args"); | ||
|
||
eval { | ||
my $server = new_memcached("-l 127.0.0.1"); | ||
}; | ||
is($@,'', "-l 127.0.0.1 works"); |