summaryrefslogtreecommitdiffstats
path: root/Tests/GoogleTest/Test/main2.h
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2017-05-14 10:16:27 (GMT)
committerCraig Scott <craig.scott@crascit.com>2017-05-15 21:57:27 (GMT)
commit6edd1806ddbfc4138dc9987d2a9c7c4fed56306b (patch)
treec7de7973de6e0958a98e61d39ef5b37a1a21da93 /Tests/GoogleTest/Test/main2.h
parent836cb52e9aec83f88841cb5b45abb1d32bb02214 (diff)
downloadCMake-6edd1806ddbfc4138dc9987d2a9c7c4fed56306b.zip
CMake-6edd1806ddbfc4138dc9987d2a9c7c4fed56306b.tar.gz
CMake-6edd1806ddbfc4138dc9987d2a9c7c4fed56306b.tar.bz2
GoogleTest: Expand capabilities of gtest_add_tests()
Now has keyword-based arguments (old syntax form is still supported). Discovered tests can have a prefix and/or suffix added to the test names and the list of discovered tests is available to the caller. The working dir can also be set and the dependency on the source files is now optional instead of mandatory.
Diffstat (limited to 'Tests/GoogleTest/Test/main2.h')
-rw-r--r--Tests/GoogleTest/Test/main2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/GoogleTest/Test/main2.h b/Tests/GoogleTest/Test/main2.h
new file mode 100644
index 0000000..7243f53
--- /dev/null
+++ b/Tests/GoogleTest/Test/main2.h
@@ -0,0 +1,6 @@
+#include <gtest/gtest.h>
+
+TEST(GoogleTest, SomethingElse)
+{
+ ASSERT_TRUE(true);
+}