summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2017-09-18 13:58:12 (GMT)
committerMatthew Woehlke <matthew.woehlke@kitware.com>2017-09-18 14:01:15 (GMT)
commit4636c64bfe71ceaad7991dfc3a397b721a578363 (patch)
treed6f10912ef3d9996ace7e8871a222ea898785518 /Tests
parent350617914596a593015f78cf42c7ed894e6a7512 (diff)
downloadCMake-4636c64bfe71ceaad7991dfc3a397b721a578363.zip
CMake-4636c64bfe71ceaad7991dfc3a397b721a578363.tar.gz
CMake-4636c64bfe71ceaad7991dfc3a397b721a578363.tar.bz2
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.)
Diffstat (limited to 'Tests')
-rw-r--r--Tests/FindGTest/Test/main.cxx2
1 files changed, 2 insertions, 0 deletions
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);
}