projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
ci: gh-actions: clang+libc++ cannot find headers
[awesomized/libmemcached]
/
test
/
lib
/
ReturnMatcher.cpp
diff --git
a/test/lib/ReturnMatcher.cpp
b/test/lib/ReturnMatcher.cpp
index cbc9a95bc4607fc0f9e9ee4618c5ebef7bbc94b3..926214e74a829a998e9106e18708af7860c92650 100644
(file)
--- a/
test/lib/ReturnMatcher.cpp
+++ b/
test/lib/ReturnMatcher.cpp
@@
-1,7
+1,13
@@
#include "ReturnMatcher.hpp"
bool ReturnMatcher::match(const memcached_return_t &arg) const {
#include "ReturnMatcher.hpp"
bool ReturnMatcher::match(const memcached_return_t &arg) const {
- return arg == expected;
+ if (arg != expected) {
+ if (expected == MEMCACHED_SUCCESS && arg == MEMCACHED_BUFFERED && memc) {
+ return memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_BUFFER_REQUESTS);
+ }
+ return false;
+ }
+ return true;
}
ReturnMatcher ReturnMatcher::success() {
}
ReturnMatcher ReturnMatcher::success() {