From: Michael Wallner Date: Wed, 22 Jan 2020 10:00:26 +0000 (+0100) Subject: tests: fix #77 X-Git-Tag: pre_cmake~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5bb059e5a357331f91fde818f703f0a0aae14a42;p=m6w6%2Flibmemcached tests: fix #77 --- diff --git a/tests/libmemcached-1.0/ketama.cc b/tests/libmemcached-1.0/ketama.cc index 4dfaf2bf..83c18aa8 100644 --- a/tests/libmemcached-1.0/ketama.cc +++ b/tests/libmemcached-1.0/ketama.cc @@ -245,7 +245,7 @@ test_return_t ketama_compatibility_spymemcached(memcached_st *) test_compare(MEMCACHED_SUCCESS, memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED, 1)); - test_compare(UINT64_C(1), memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED)); + test_compare(uint64_t(1), memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED)); test_compare(MEMCACHED_SUCCESS, memcached_behavior_set_distribution(memc, MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPY)); test_compare(MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPY, memcached_behavior_get_distribution(memc)); diff --git a/tests/libmemcached-1.0/pool.cc b/tests/libmemcached-1.0/pool.cc index a09faa69..457cf962 100644 --- a/tests/libmemcached-1.0/pool.cc +++ b/tests/libmemcached-1.0/pool.cc @@ -191,7 +191,7 @@ test_return_t connection_pool2_test(memcached_st *memc) test_compare(MEMCACHED_SUCCESS, rc); } - test_compare(UINT64_C(9999), memcached_behavior_get(mmc[1], MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK)); + test_compare(uint64_t(9999), memcached_behavior_get(mmc[1], MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK)); test_compare(MEMCACHED_SUCCESS, memcached_pool_release(pool, mmc[1])); test_compare(MEMCACHED_SUCCESS, memcached_pool_release(pool, mmc[0])); @@ -202,7 +202,7 @@ test_return_t connection_pool2_test(memcached_st *memc) test_compare(MEMCACHED_SUCCESS, rc); } - test_compare(UINT64_C(9999), memcached_behavior_get(mmc[0], MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK)); + test_compare(uint64_t(9999), memcached_behavior_get(mmc[0], MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK)); test_compare(MEMCACHED_SUCCESS, memcached_pool_release(pool, mmc[0])); test_true(memcached_pool_destroy(pool) == memc);