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