projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fixed return length issues.
[m6w6/libmemcached]
/
tests
/
test.c
diff --git
a/tests/test.c
b/tests/test.c
index 258feb441234877b50fbea9b7169744e7cdd4ef1..a625206981a400ac0fb29514b9245252ec121c21 100644
(file)
--- a/
tests/test.c
+++ b/
tests/test.c
@@
-683,7
+683,7
@@
void string_alloc_with_size_toobig(memcached_st *memc)
{
memcached_string_st *string;
{
memcached_string_st *string;
- string= memcached_string_create(memc,
U
INT64_MAX);
+ string= memcached_string_create(memc, INT64_MAX);
assert(string == NULL);
}
assert(string == NULL);
}
@@
-726,7
+726,7
@@
void string_alloc_append_toobig(memcached_st *memc)
rc= memcached_string_append(memc, string, buffer, SMALL_STRING_LEN);
assert(rc == MEMCACHED_SUCCESS);
}
rc= memcached_string_append(memc, string, buffer, SMALL_STRING_LEN);
assert(rc == MEMCACHED_SUCCESS);
}
- rc= memcached_string_append(memc, string, buffer,
U
INT64_MAX);
+ rc= memcached_string_append(memc, string, buffer, INT64_MAX);
assert(rc == MEMCACHED_MEMORY_ALLOCATION_FAILURE);
memcached_string_free(memc, string);
}
assert(rc == MEMCACHED_MEMORY_ALLOCATION_FAILURE);
memcached_string_free(memc, string);
}
@@
-867,7
+867,7
@@
int main(int argc, char *argv[])
test_st user_tests[] ={
{"user_supplied_bug1", 0, user_supplied_bug1 },
{"user_supplied_bug2", 0, user_supplied_bug2 },
test_st user_tests[] ={
{"user_supplied_bug1", 0, user_supplied_bug1 },
{"user_supplied_bug2", 0, user_supplied_bug2 },
-
//
{"user_supplied_bug3", 0, user_supplied_bug3 },
+ {"user_supplied_bug3", 0, user_supplied_bug3 },
{0, 0, 0}
};
{0, 0, 0}
};