diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2017-09-18 13:58:12 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2017-09-18 14:01:15 (GMT) |
commit | 4636c64bfe71ceaad7991dfc3a397b721a578363 (patch) | |
tree | d6f10912ef3d9996ace7e8871a222ea898785518 /Tests | |
parent | 350617914596a593015f78cf42c7ed894e6a7512 (diff) | |
download | CMake-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.cxx | 2 |
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); } |