summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-26 19:25:22 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-26 19:41:33 (GMT)
commit67e76e82df0fe8466b4bf65265d0c6b7f6046dfb (patch)
tree1f4e7dbf5bf928be424801f05b01bf74950b4e36 /Tests/CompileFeatures
parent3046be77847ce54baae1d432dec224282dedcc16 (diff)
downloadCMake-67e76e82df0fe8466b4bf65265d0c6b7f6046dfb.zip
CMake-67e76e82df0fe8466b4bf65265d0c6b7f6046dfb.tar.gz
CMake-67e76e82df0fe8466b4bf65265d0c6b7f6046dfb.tar.bz2
Features: Fix test to reject missing expectation definitions
Whenever feature support is added to a compiler, the CompileFeatures test needs to be updated to set expected availability of features. Add #error directives to ensure the test fails if expectations are not set. Suggested-by: Stephen Kelly <steveire@gmail.com>
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/genex_test.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/genex_test.cpp b/Tests/CompileFeatures/genex_test.cpp
index 7919eb4..2161bca 100644
--- a/Tests/CompileFeatures/genex_test.cpp
+++ b/Tests/CompileFeatures/genex_test.cpp
@@ -1,3 +1,15 @@
+#ifndef EXPECT_FINAL
+# error EXPECT_FINAL not defined
+#endif
+#ifndef EXPECT_INHERITING_CONSTRUCTORS
+# error EXPECT_INHERITING_CONSTRUCTORS not defined
+#endif
+#ifndef EXPECT_INHERITING_CONSTRUCTORS_AND_FINAL
+# error EXPECT_INHERITING_CONSTRUCTORS_AND_FINAL not defined
+#endif
+#ifndef EXPECT_OVERRIDE_CONTROL
+# error EXPECT_OVERRIDE_CONTROL not defined
+#endif
#if !HAVE_OVERRIDE_CONTROL
#if EXPECT_OVERRIDE_CONTROL