summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-26 14:25:22 -0500
committerBrad King <brad.king@kitware.com>2015-01-26 14:41:33 -0500
commit67e76e82df0fe8466b4bf65265d0c6b7f6046dfb (patch)
tree1f4e7dbf5bf928be424801f05b01bf74950b4e36 /Tests
parent3046be77847ce54baae1d432dec224282dedcc16 (diff)
downloadcmake-67e76e82df0fe8466b4bf65265d0c6b7f6046dfb.tar.gz
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')
-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 7919eb4019..2161bca49b 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