From 98aa9c8d5b790fc8f150658931c1551a1b87a83b Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 21 Mar 2018 15:45:51 +0200 Subject: [PATCH] MXS-1475 Fix unit-test program --- server/modules/filter/cache/test/testerstorage.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/modules/filter/cache/test/testerstorage.cc b/server/modules/filter/cache/test/testerstorage.cc index cfc1dc808..aea068c7b 100644 --- a/server/modules/filter/cache/test/testerstorage.cc +++ b/server/modules/filter/cache/test/testerstorage.cc @@ -390,7 +390,7 @@ int TesterStorage::test_ttl(const CacheItems& cache_items, Storage& storage) pValue = NULL; result = storage.get_value(cache_item.first, CACHE_FLAGS_INCLUDE_STALE, &pValue); - if (result != CACHE_RESULT_NOT_FOUND) + if (!CACHE_RESULT_IS_NOT_FOUND(result)) { out() << "Expected not to be found, and without stale bit." << endl; rv = EXIT_FAILURE; @@ -401,7 +401,7 @@ int TesterStorage::test_ttl(const CacheItems& cache_items, Storage& storage) pValue = NULL; result = storage.get_value(cache_item.first, 0, &pValue); - if (result != CACHE_RESULT_NOT_FOUND) + if (!CACHE_RESULT_IS_NOT_FOUND(result)) { out() << "Expected not to be found, and without stale bit." << endl; rv = EXIT_FAILURE;