testing: let retry's sleeping duration grow faster
[awesomized/libmemcached] / test / tests / memcached / regression / lp_000-854-604.cpp
1 #include "test/lib/common.hpp"
2
3 #define NULL_CSTR nullptr,0
4
5 TEST_CASE("memcached_regression_lp854604") {
6 char buffer[1024];
7
8 REQUIRE(MEMCACHED_INVALID_ARGUMENTS == libmemcached_check_configuration(NULL_CSTR, NULL_CSTR));
9 REQUIRE(MEMCACHED_INVALID_ARGUMENTS == libmemcached_check_configuration(NULL_CSTR, buffer, 0));
10 for (auto i = 0; i < 100; ++i) {
11 REQUIRE(MEMCACHED_PARSE_ERROR == libmemcached_check_configuration(S("syntax error"), buffer, random_num(0,1024)));
12 }
13 }