Skip to content

Commit 084b8e8

Browse files
trondndaverigby
authored andcommitted
Refactor: rename memcached_topkeys_bench to _test
It is not a benchmark, but rather a unit test Change-Id: I17f8d58e0f540f1c5e33b3d614e414d0d3d7daba Reviewed-on: http://review.couchbase.org/93485 Tested-by: Build Bot <[email protected]> Reviewed-by: Dave Rigby <[email protected]>
1 parent 91b91b7 commit 084b8e8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/topkeys/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
ADD_EXECUTABLE(memcached_topkeys_bench topkeys_bench.cc)
2-
TARGET_LINK_LIBRARIES(memcached_topkeys_bench memcached_daemon gtest gtest_main)
3-
add_sanitizers(memcached_topkeys_bench)
1+
add_executable(memcached_topkeys_test topkeys_test.cc)
2+
target_link_libraries(memcached_topkeys_test memcached_daemon gtest gtest_main)
3+
add_sanitizers(memcached_topkeys_test)
44

5-
ADD_TEST(NAME memcached_topkeys_bench
5+
add_test(NAME memcached_topkeys_test
66
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
7-
COMMAND memcached_topkeys_bench)
7+
COMMAND memcached_topkeys_test)

tests/topkeys/topkeys_bench.cc renamed to tests/topkeys/topkeys_test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <gtest/gtest.h>
2020
#include <memory>
2121

22-
2322
class TopKeysTest : public ::testing::Test {
2423
protected:
2524
void SetUp() {

0 commit comments

Comments
 (0)