summaryrefslogtreecommitdiff
path: root/testapp.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2011-09-27 01:29:39 -0700
committerdormando <dormando@rydia.net>2011-09-27 01:29:39 -0700
commit0d16e8c0176d720613b8d4122bd63e3718c996a9 (patch)
treee7e974a824decee09af272e32fb774b679794e92 /testapp.c
parentd87f568a95ed1abe468188476fa5ed9288799223 (diff)
downloadmemcached-0d16e8c0176d720613b8d4122bd63e3718c996a9.tar.gz
Add binary GATK/GATKQ
Apparently nothing tests GETK/GETKQ, so tests still have to be added. 1.6 doesn't have GATK/GATKQ because the membase folks didn't need it. I'm adding them for completeness and because I don't want to argue about why people can't have it. If you're reading this, please use opaques :)
Diffstat (limited to 'testapp.c')
-rw-r--r--testapp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/testapp.c b/testapp.c
index 769a618..aba0b90 100644
--- a/testapp.c
+++ b/testapp.c
@@ -967,7 +967,8 @@ static void validate_response_header(protocol_binary_response_no_extras *respons
} else {
assert(response->message.header.response.cas == 0);
assert(response->message.header.response.extlen == 0);
- if (cmd != PROTOCOL_BINARY_CMD_GETK) {
+ if (cmd != PROTOCOL_BINARY_CMD_GETK &&
+ cmd != PROTOCOL_BINARY_CMD_GATK) {
assert(response->message.header.response.keylen == 0);
}
}
@@ -1597,7 +1598,7 @@ static enum test_return test_binary_stat(void) {
}
static enum test_return test_binary_illegal(void) {
- uint8_t cmd = 0x23;
+ uint8_t cmd = 0x25;
while (cmd != 0x00) {
union {
protocol_binary_request_no_extras request;
@@ -1704,6 +1705,8 @@ static enum test_return test_binary_pipeline_hickup_chunk(void *buffer, size_t b
case PROTOCOL_BINARY_CMD_TOUCH:
case PROTOCOL_BINARY_CMD_GAT:
case PROTOCOL_BINARY_CMD_GATQ:
+ case PROTOCOL_BINARY_CMD_GATK:
+ case PROTOCOL_BINARY_CMD_GATKQ:
len = touch_command(command.bytes, sizeof(command.bytes), cmd,
key, keylen, 10);
break;