+
+ if (random_string.compare(0, test_literal_compare_param("--NAMESPACE")) == 0)
+ {
+ if (used_options.has_namespace)
+ {
+ continue;
+ }
+ used_options.has_namespace= true;
+ }
+
+ if (random_string.compare(0, test_literal_compare_param("--USE-UDP")) == 0)
+ {
+ if (used_options.has_udp)
+ {
+ continue;
+ }
+ used_options.has_udp= true;
+
+ if (used_options.has_buffer_requests)
+ {
+ continue;
+ }
+ }
+
+ if (random_string.compare(0, test_literal_compare_param("--BUFFER-REQUESTS")) == 0)
+ {
+ if (used_options.has_buffer_requests)
+ {
+ continue;
+ }
+ used_options.has_buffer_requests= true;
+
+ if (used_options.has_udp)
+ {
+ continue;
+ }
+ }
+
+ if (random_string.compare(0, test_literal_compare_param("--BINARY-PROTOCOL")) == 0)
+ {
+ if (used_options.has_binary)
+ {
+ continue;
+ }
+ used_options.has_binary= true;
+
+ if (used_options.has_verify_key)
+ {
+ continue;
+ }
+ }
+
+ if (random_string.compare(0, test_literal_compare_param("--VERIFY-KEY")) == 0)
+ {
+ if (used_options.has_verify_key)
+ {
+ continue;
+ }
+ used_options.has_verify_key= true;
+
+ if (used_options.has_binary)
+ {
+ continue;
+ }
+ }
+
+ if (random_string.compare(0, test_literal_compare_param("--DISTRIBUTION")) == 0)
+ {
+ if (used_options.has_distribution)
+ {
+ continue;
+ }
+
+ if (used_options.has_hash)
+ {
+ continue;
+ }
+ used_options.has_distribution= true;
+ }
+
+ random_options+= random_string;
+ random_options+= " ";
+ }
+
+ if (random_options.size() <= 1)
+ {
+ continue;
+ }
+
+ random_options.resize(random_options.size() -1);
+
+ char buffer[BUFSIZ];
+ memcached_return_t rc= libmemcached_check_configuration(random_options.c_str(), random_options.size(), buffer, sizeof(buffer));
+ if (memcached_failed(rc))
+ {
+ Error << "libmemcached_check_configuration(" << random_options << ") : " << buffer;
+ return TEST_FAILURE;