projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
0f46c72
)
memcapable shouldn't be so picky about the error messages..
author
Trond Norbye
<trond.norbye@gmail.com>
Sat, 5 Jun 2010 19:17:33 +0000
(21:17 +0200)
committer
Trond Norbye
<trond.norbye@gmail.com>
Sat, 5 Jun 2010 19:17:33 +0000
(21:17 +0200)
clients/memcapable.c
patch
|
blob
|
history
diff --git
a/clients/memcapable.c
b/clients/memcapable.c
index 9921f1f147fd26ce5460c2ed48aefb687dfa5f7a..08524c495647de4aa300624b40931445d9ab64b8 100644
(file)
--- a/
clients/memcapable.c
+++ b/
clients/memcapable.c
@@
-1173,9
+1173,9
@@
static enum test_return receive_error_response(void)
{
char buffer[80];
execute(receive_line(buffer, sizeof(buffer)));
- verify(strncmp(buffer, "ERROR
\r\n", 7
) == 0 ||
- strncmp(buffer, "CLIENT_ERROR
:", 13
) == 0 ||
- strncmp(buffer, "SERVER_ERROR
:", 13
) == 0);
+ verify(strncmp(buffer, "ERROR
", 5
) == 0 ||
+ strncmp(buffer, "CLIENT_ERROR
", 12
) == 0 ||
+ strncmp(buffer, "SERVER_ERROR
", 12
) == 0);
return TEST_PASS;
}