Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/140.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 无法在我的CLion(CMake)项目中导入google测试_C++_Cmake_Googletest_Clion - Fatal编程技术网

C++ 无法在我的CLion(CMake)项目中导入google测试

C++ 无法在我的CLion(CMake)项目中导入google测试,c++,cmake,googletest,clion,C++,Cmake,Googletest,Clion,我试图在我的CMake项目中使用Google测试,但没有成功 我遵循了官方《CLion指南》上的说明: 现在我的项目树是这样的: main_project_folder |__lib/ |__src/ |__Google_tests/ | |__googletest/ <-- (downloaded from official googleTest repository) | |__test1.cpp | |__CMakeLists.txt |__CMakeLists

我试图在我的CMake项目中使用Google测试,但没有成功

我遵循了官方《CLion指南》上的说明:

现在我的项目树是这样的:

main_project_folder
|__lib/
|__src/
|__Google_tests/
|  |__googletest/        <-- (downloaded from official googleTest repository)
|  |__test1.cpp
|  |__CMakeLists.txt
|__CMakeLists.txt
|__main.cpp
|__Makefile
这就是test1.cpp的样子:

   #include "gtest/gtest.h"
    
    TEST(test,test1){
        EXPECT_TRUE(1);
    };
在我的main
CMakeLists.txt的底部,我还添加了

enable_testing()
add_subdirectory(Google_tests)

问题是,当我构建项目时,我从编译器那里得到了一长串错误,所以我不能继续学习教程。 (CMake项目的其余部分,不包括GoogleTest的完美构建)。此外,重新加载CMake项目不会返回错误。 我做错了什么

以下是我收到的(部分)错误:

[ 83%] Building CXX object Google_tests/CMakeFiles/Google_Tests_run.dir/test1.cpp.o
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1982:0: warning: "EXPECT_TRUE" redefined
 #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1979:0: note: this is the location of the previous definition
 #define EXPECT_TRUE(condition) \

In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1986:0: warning: "EXPECT_FALSE" redefined
 #define EXPECT_FALSE(condition) GTEST_EXPECT_FALSE(condition)

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1982:0: note: this is the location of the previous definition
 #define EXPECT_FALSE(condition) \

In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1990:0: warning: "ASSERT_TRUE" redefined
 #define ASSERT_TRUE(condition) GTEST_ASSERT_TRUE(condition)

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1985:0: note: this is the location of the previous definition
 #define ASSERT_TRUE(condition) \

In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1994:0: warning: "ASSERT_FALSE" redefined
 #define ASSERT_FALSE(condition) GTEST_ASSERT_FALSE(condition)

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1988:0: note: this is the location of the previous definition
 #define ASSERT_FALSE(condition) \

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:167:11: error: redefinition of ‘const int testing::kMaxStackTraceDepth’
 const int kMaxStackTraceDepth = 100;
           ^~~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:167:11: note:
‘const int testing::kMaxStackTraceDepth’ previously defined here
 const int kMaxStackTraceDepth = 100;
           ^~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:283:18: error: redefinition of ‘class testing::AssertionResult’
 class GTEST_API_ AssertionResult {
                  ^~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:283:18: note:
previous definition of ‘class testing::AssertionResult’
 class GTEST_API_ AssertionResult {
                  ^~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:414:18: error: redefinition of ‘class testing::Test’
 class GTEST_API_ Test {
                  ^~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:414:18: note: previous definition of ‘class testing::Test’
 class GTEST_API_ Test {
                  ^~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:534:7: error:
redefinition of ‘class testing::TestProperty’
 class TestProperty {
       ^~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:533:7: note: previous definition of ‘class testing::TestProperty’
 class TestProperty {
       ^~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:571:18: error: redefinition of ‘class testing::TestResult’
 class GTEST_API_ TestResult {
                  ^~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:570:18: note: previous definition of ‘class testing::TestResult’
 class GTEST_API_ TestResult {
                  ^~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:704:18: error: redefinition of ‘class testing::TestInfo’
 class GTEST_API_ TestInfo {
                  ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:703:18: note: previous definition of ‘class testing::TestInfo’
 class GTEST_API_ TestInfo {
                  ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:842:18: error: redefinition of ‘class testing::TestSuite’
 class GTEST_API_ TestSuite {
                  ^~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:841:18: note: previous definition of ‘class testing::TestSuite’
 class GTEST_API_ TestSuite {
                  ^~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1062:7: error: redefinition of ‘class testing::Environment’
 class Environment {
       ^~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1061:7: note: previous definition of ‘class testing::Environment’
 class Environment {
       ^~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1082:18: error: redefinition of ‘class testing::AssertionException’
 class GTEST_API_ AssertionException
                  ^~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1081:18: note: previous definition of ‘class testing::AssertionException’
 class GTEST_API_ AssertionException
                  ^~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1093:7: error: redefinition of ‘class testing::TestEventListener’
 class TestEventListener {
       ^~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1092:7: note: previous definition of ‘class testing::TestEventListener’
 class TestEventListener {
       ^~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1158:7: error: redefinition of ‘class testing::EmptyTestEventListener’
 class EmptyTestEventListener : public TestEventListener {
       ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1157:7: note: previous definition of ‘class testing::EmptyTestEventListener’
 class EmptyTestEventListener : public TestEventListener {
       ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1187:18: error: redefinition of ‘class testing::TestEventListeners’
 class GTEST_API_ TestEventListeners {
                  ^~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1186:18: note: previous definition of ‘class testing::TestEventListeners’
 class GTEST_API_ TestEventListeners {
                  ^~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1274:18: error: redefinition of ‘class testing::UnitTest’
 class GTEST_API_ UnitTest {
                  ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1273:18: note: previous definition of ‘class testing::UnitTest’
 class GTEST_API_ UnitTest {
                  ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: In function
testing::Environment* testing::AddGlobalTestEnvironment(testing::Environment*)’:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1493:21: error: redefinition of ‘testing::Environment* testing::AddGlobalTestEnvironment(testing::Environment*)’
 inline Environment* AddGlobalTestEnvironment(Environment* env) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1492:21: note: ‘testing::Environment* testing::AddGlobalTestEnvironment(testing::Environment*)’ previously defined here
 inline Environment* AddGlobalTestEnvironment(Environment* env) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1494:53: error: ‘testing::Environment* testing::UnitTest::AddEnvironment(testing::Environment*)’ is private within this context
   return UnitTest::GetInstance()->AddEnvironment(env);
                                                     ^
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1403:16: note: declared private here
   Environment* AddEnvironment(Environment* env);
                ^~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: At global scope:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1522:17: error: redefinition of ‘template<class T1, class T2> testing::AssertionResult testing::internal::CmpHelperEQFailure(const char*, const char*, const T1&, const T2&)’
 AssertionResult CmpHelperEQFailure(const char* lhs_expression,
                 ^~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1521:17: note: ‘template<class T1, class T2> testing::AssertionResult testing::internal::CmpHelperEQFailure(const char*, const char*, const T1&, const T2&)’ previously declared here
 AssertionResult CmpHelperEQFailure(const char* lhs_expression,
                 ^~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1535:8: error: redefinition of ‘struct testing::internal::faketype’
 struct faketype {};
        ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1534:8: note: previous definition of ‘struct testing::internal::faketype’
 struct faketype {};
        ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: In function
bool testing::internal::operator==(testing::internal::faketype, testing::internal::faketype)’:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1536:13: error: redefinition of ‘bool testing::internal::operator==(testing::internal::faketype, testing::internal::faketype)’
 inline bool operator==(faketype, faketype) { return true; }
             ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1535:13: note: ‘bool testing::internal::operator==(testing::internal::faketype, testing::internal::faketype)’ previously defined here
 inline bool operator==(faketype, faketype) { return true; }
             ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: In function
bool testing::internal::operator!=(testing::internal::faketype, testing::internal::faketype)’:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1537:13: error: redefinition of ‘bool testing::internal::operator!=(testing::internal::faketype, testing::internal::faketype)’
 inline bool operator!=(faketype, faketype) { return false; }
             ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1536:13: note: ‘bool testing::internal::operator!=(testing::internal::faketype, testing::internal::faketype)’ previously defined here
 inline bool operator!=(faketype, faketype) { return false; }
             ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: At global scope:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1541:17: error: redefinition of ‘template<class T1, class T2> testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&)’
 AssertionResult CmpHelperEQ(const char* lhs_expression,
                 ^~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1540:17: note: ‘template<class T1, class T2> testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&)’ previously declared here
[83%]构建CXX对象Google\u tests/cmakfiles/Google\u tests\u run.dir/test1.cpp.o
文件包括在/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_-Twinkle/Google_-tests//googletest/googletest/include/gtest/gtest.h:1982:0:警告:重新定义了“期望真实”
#定义EXPECT_TRUE(条件)GTEST_EXPECT_TRUE(条件)
在/usr/local/include/gtest/gtest_pred_impl.h:39:0中包含的文件中,
from/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:387,
from/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1979:0:注:这是先前定义的位置
#定义EXPECT_TRUE(条件)\
文件包括在/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:1986:0:警告:“EXPECT_FALSE”重新定义
#定义EXPECT_FALSE(条件)GTEST_EXPECT_FALSE(条件)
在/usr/local/include/gtest/gtest_pred_impl.h:39:0中包含的文件中,
from/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:387,
from/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1982:0:注:这是先前定义的位置
#定义EXPECT_FALSE(条件)\
文件包括在/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_-Twinkle/Google_-tests//googletest/googletest/include/gtest/gtest.h:1990:0:警告:重新定义了“ASSERT_-TRUE”
#定义断言真(条件)GTEST断言真(条件)
在/usr/local/include/gtest/gtest_pred_impl.h:39:0中包含的文件中,
from/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:387,
from/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1985:0:注:这是先前定义的位置
#定义断言_真(条件)\
文件包括在/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:1994:0:警告:“ASSERT_FALSE”重新定义
#定义断言错误(条件)GTEST断言错误(条件)
在/usr/local/include/gtest/gtest_pred_impl.h:39:0中包含的文件中,
from/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:387,
from/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1988:0:注:这是先前定义的位置
#定义ASSERT_FALSE(条件)\
在/usr/local/include/gtest/gtest_pred_impl.h:39:0中包含的文件中,
from/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:387,
from/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:167:11:错误:重新定义“const int testing::kMaxStackTraceDepth”
常数int kMaxStackTraceDepth=100;
^~~~~~~~~~~~~~~~~~~
文件包括在/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:167:11:注意:
“const int testing::kMaxStackTraceDepth”之前在此处定义
常数int kMaxStackTraceDepth=100;
^~~~~~~~~~~~~~~~~~~
在/usr/local/include/gtest/gtest_pred_impl.h:39:0中包含的文件中,
from/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:387,
from/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:283:18:错误:重新定义“类测试::断言结果”
类GTEST_API_断言结果{
^~~~~~~~~~~~~~~
文件包括在/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:283:18:注意:
“类测试::断言结果”的先前定义
类GTEST_API_断言结果{
^~~~~~~~~~~~~~~
文件包括在/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:414:18:错误:重新定义“类测试::测试”
等级GTEST_API_uu测试{
^~~~
在/usr/local/include/gtest/gtest_pred_impl.h:39:0中包含的文件中,
from/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:387,
from/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:414:18:注:“类测试::测试”的先前定义
等级GTEST_API_uu测试{
^~~~
文件包括在/home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests//googletest/googletest/include/gtest/gtest.h:534:7:错误:
重新定义“类测试::TestProperty”
类TestProperty{
^~~~~~~~~~~~
在/usr/local/include/gtest/gtest_pred_impl.h:39:0中包含的文件中,
[ 83%] Building CXX object Google_tests/CMakeFiles/Google_Tests_run.dir/test1.cpp.o
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1982:0: warning: "EXPECT_TRUE" redefined
 #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1979:0: note: this is the location of the previous definition
 #define EXPECT_TRUE(condition) \

In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1986:0: warning: "EXPECT_FALSE" redefined
 #define EXPECT_FALSE(condition) GTEST_EXPECT_FALSE(condition)

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1982:0: note: this is the location of the previous definition
 #define EXPECT_FALSE(condition) \

In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1990:0: warning: "ASSERT_TRUE" redefined
 #define ASSERT_TRUE(condition) GTEST_ASSERT_TRUE(condition)

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1985:0: note: this is the location of the previous definition
 #define ASSERT_TRUE(condition) \

In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1994:0: warning: "ASSERT_FALSE" redefined
 #define ASSERT_FALSE(condition) GTEST_ASSERT_FALSE(condition)

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1988:0: note: this is the location of the previous definition
 #define ASSERT_FALSE(condition) \

In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:167:11: error: redefinition of ‘const int testing::kMaxStackTraceDepth’
 const int kMaxStackTraceDepth = 100;
           ^~~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:167:11: note:
‘const int testing::kMaxStackTraceDepth’ previously defined here
 const int kMaxStackTraceDepth = 100;
           ^~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:283:18: error: redefinition of ‘class testing::AssertionResult’
 class GTEST_API_ AssertionResult {
                  ^~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:283:18: note:
previous definition of ‘class testing::AssertionResult’
 class GTEST_API_ AssertionResult {
                  ^~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:414:18: error: redefinition of ‘class testing::Test’
 class GTEST_API_ Test {
                  ^~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:414:18: note: previous definition of ‘class testing::Test’
 class GTEST_API_ Test {
                  ^~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:534:7: error:
redefinition of ‘class testing::TestProperty’
 class TestProperty {
       ^~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:533:7: note: previous definition of ‘class testing::TestProperty’
 class TestProperty {
       ^~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:571:18: error: redefinition of ‘class testing::TestResult’
 class GTEST_API_ TestResult {
                  ^~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:570:18: note: previous definition of ‘class testing::TestResult’
 class GTEST_API_ TestResult {
                  ^~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:704:18: error: redefinition of ‘class testing::TestInfo’
 class GTEST_API_ TestInfo {
                  ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:703:18: note: previous definition of ‘class testing::TestInfo’
 class GTEST_API_ TestInfo {
                  ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:842:18: error: redefinition of ‘class testing::TestSuite’
 class GTEST_API_ TestSuite {
                  ^~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:841:18: note: previous definition of ‘class testing::TestSuite’
 class GTEST_API_ TestSuite {
                  ^~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1062:7: error: redefinition of ‘class testing::Environment’
 class Environment {
       ^~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1061:7: note: previous definition of ‘class testing::Environment’
 class Environment {
       ^~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1082:18: error: redefinition of ‘class testing::AssertionException’
 class GTEST_API_ AssertionException
                  ^~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1081:18: note: previous definition of ‘class testing::AssertionException’
 class GTEST_API_ AssertionException
                  ^~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1093:7: error: redefinition of ‘class testing::TestEventListener’
 class TestEventListener {
       ^~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1092:7: note: previous definition of ‘class testing::TestEventListener’
 class TestEventListener {
       ^~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1158:7: error: redefinition of ‘class testing::EmptyTestEventListener’
 class EmptyTestEventListener : public TestEventListener {
       ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1157:7: note: previous definition of ‘class testing::EmptyTestEventListener’
 class EmptyTestEventListener : public TestEventListener {
       ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1187:18: error: redefinition of ‘class testing::TestEventListeners’
 class GTEST_API_ TestEventListeners {
                  ^~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1186:18: note: previous definition of ‘class testing::TestEventListeners’
 class GTEST_API_ TestEventListeners {
                  ^~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1274:18: error: redefinition of ‘class testing::UnitTest’
 class GTEST_API_ UnitTest {
                  ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1273:18: note: previous definition of ‘class testing::UnitTest’
 class GTEST_API_ UnitTest {
                  ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: In function
testing::Environment* testing::AddGlobalTestEnvironment(testing::Environment*)’:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1493:21: error: redefinition of ‘testing::Environment* testing::AddGlobalTestEnvironment(testing::Environment*)’
 inline Environment* AddGlobalTestEnvironment(Environment* env) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1492:21: note: ‘testing::Environment* testing::AddGlobalTestEnvironment(testing::Environment*)’ previously defined here
 inline Environment* AddGlobalTestEnvironment(Environment* env) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1494:53: error: ‘testing::Environment* testing::UnitTest::AddEnvironment(testing::Environment*)’ is private within this context
   return UnitTest::GetInstance()->AddEnvironment(env);
                                                     ^
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1403:16: note: declared private here
   Environment* AddEnvironment(Environment* env);
                ^~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: At global scope:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1522:17: error: redefinition of ‘template<class T1, class T2> testing::AssertionResult testing::internal::CmpHelperEQFailure(const char*, const char*, const T1&, const T2&)’
 AssertionResult CmpHelperEQFailure(const char* lhs_expression,
                 ^~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1521:17: note: ‘template<class T1, class T2> testing::AssertionResult testing::internal::CmpHelperEQFailure(const char*, const char*, const T1&, const T2&)’ previously declared here
 AssertionResult CmpHelperEQFailure(const char* lhs_expression,
                 ^~~~~~~~~~~~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1535:8: error: redefinition of ‘struct testing::internal::faketype’
 struct faketype {};
        ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1534:8: note: previous definition of ‘struct testing::internal::faketype’
 struct faketype {};
        ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: In function
bool testing::internal::operator==(testing::internal::faketype, testing::internal::faketype)’:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1536:13: error: redefinition of ‘bool testing::internal::operator==(testing::internal::faketype, testing::internal::faketype)’
 inline bool operator==(faketype, faketype) { return true; }
             ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1535:13: note: ‘bool testing::internal::operator==(testing::internal::faketype, testing::internal::faketype)’ previously defined here
 inline bool operator==(faketype, faketype) { return true; }
             ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: In function
bool testing::internal::operator!=(testing::internal::faketype, testing::internal::faketype)’:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1537:13: error: redefinition of ‘bool testing::internal::operator!=(testing::internal::faketype, testing::internal::faketype)’
 inline bool operator!=(faketype, faketype) { return false; }
             ^~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1536:13: note: ‘bool testing::internal::operator!=(testing::internal::faketype, testing::internal::faketype)’ previously defined here
 inline bool operator!=(faketype, faketype) { return false; }
             ^~~~~~~~
In file included from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:0:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h: At global scope:
/home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:1541:17: error: redefinition of ‘template<class T1, class T2> testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&)’
 AssertionResult CmpHelperEQ(const char* lhs_expression,
                 ^~~~~~~~~~~
In file included from /usr/local/include/gtest/gtest_pred_impl.h:39:0,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/./googletest/googletest/include/gtest/gtest.h:387,
                 from /home/thomas/dev/AEM_Twinkle/Google_tests/test1.cpp:4:
/usr/local/include/gtest/gtest.h:1540:17: note: ‘template<class T1, class T2> testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&)’ previously declared here