1730f35
From: Peter Lemenkov <lemenkov@gmail.com>
1730f35
Date: Mon, 3 Apr 2023 20:26:59 +0200
1730f35
Subject: [PATCH] Temporary disable this gmock flag
1730f35
1730f35
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
1730f35
1730f35
diff --git a/CMakeLists.txt b/CMakeLists.txt
a620b61
index 2df6e77..73314a9 100644
1730f35
--- a/CMakeLists.txt
1730f35
+++ b/CMakeLists.txt
a620b61
@@ -131,6 +131,7 @@ include(GoogleTest)
1730f35
 add_executable(sipp_unittest EXCLUDE_FROM_ALL ${all_SRCS} "${PROJECT_SOURCE_DIR}/src/sipp_unittest.cpp")
1730f35
 target_compile_features(sipp_unittest PUBLIC cxx_auto_type cxx_range_for)
1730f35
 target_compile_definitions(sipp_unittest PUBLIC "-DGTEST")
1730f35
+target_link_libraries(sipp_unittest ${GTEST_BOTH_LIBRARIES})
1730f35
 gtest_add_tests(TARGET sipp_unittest TEST_PREFIX sipp_unittests:)
1730f35
 
1730f35
 # add version
1730f35
diff --git a/src/sipp_unittest.cpp b/src/sipp_unittest.cpp
1730f35
index a62cb0f..6e08e33 100644
1730f35
--- a/src/sipp_unittest.cpp
1730f35
+++ b/src/sipp_unittest.cpp
1730f35
@@ -29,7 +29,7 @@ int main(int argc, char* argv[])
1730f35
     userVariables = new AllocVariableTable(globalVariables);
1730f35
     main_scenario = new scenario(0, 0);
1730f35
 
1730f35
-    ::testing::GMOCK_FLAG(verbose) = "verbose";
1730f35
+    //::testing::GMOCK_FLAG(verbose) = "verbose";
1730f35
     ::testing::InitGoogleTest(&argc, argv);
1730f35
     return RUN_ALL_TESTS();
1730f35
 }