aboutsummaryrefslogtreecommitdiffstats
path: root/storageframework
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2019-02-22 15:02:56 +0000
committerGeir Storli <geirst@verizonmedia.com>2019-02-22 15:02:56 +0000
commit218640e48925608f019bc10bc17a52b6fe56ec47 (patch)
tree047e0b5f391988c814ad1abf5ddca5c2230fb330 /storageframework
parenta56fbe36bd898a24c8e5a30b6988a8e76192bf91 (diff)
Reduce code duplication in gtest runners.
Diffstat (limited to 'storageframework')
-rw-r--r--storageframework/src/tests/gtest_runner.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/storageframework/src/tests/gtest_runner.cpp b/storageframework/src/tests/gtest_runner.cpp
index ce0310d7fa1..e9a1c9b1ed8 100644
--- a/storageframework/src/tests/gtest_runner.cpp
+++ b/storageframework/src/tests/gtest_runner.cpp
@@ -1,14 +1,8 @@
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <gtest/gtest.h>
+#include <vespa/vespalib/gtest/gtest.h>
#include <vespa/log/log.h>
LOG_SETUP("storageframework_gtest_runner");
-int
-main(int argc, char* argv[])
-{
- ::testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}
-
+GTEST_MAIN_RUN_ALL_TESTS