From 4636c64bfe71ceaad7991dfc3a397b721a578363 Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Mon, 18 Sep 2017 09:58:12 -0400 Subject: FindGTest: Improve test to catch link error Add a reference to one of Google Test's command-line flags to the FindGTest test. This will ensure that we are using the correct compile definitions on Windows, as the test will otherwise fail to link. (IOW, this tests the changes made by the previous commit.) --- Tests/FindGTest/Test/main.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/FindGTest/Test/main.cxx b/Tests/FindGTest/Test/main.cxx index 0572a5d..19d2967 100644 --- a/Tests/FindGTest/Test/main.cxx +++ b/Tests/FindGTest/Test/main.cxx @@ -2,5 +2,7 @@ TEST(FindCMake, LinksAndRuns) { + using namespace testing; + EXPECT_FALSE(GTEST_FLAG(list_tests)); ASSERT_TRUE(true); } -- cgit v0.12