Build: gate reflection-only tests on VOID_HAS_CXX26_REFLECTION (refs #38)
This commit is contained in:
1 parent
b1933d9906
commit
1ba60d5d6a
19 files changed
+56
-12
No files matched your search
@@ -110,4 +110,7 @@ Tests are free functions or methods on a `Void::Testing::Fixture` subclass
|
||||
returning `Void::Testing::Test` (or `Void::Testing::DisabledTest`).
|
||||
Registration is automatic — the CMake test scanner parses each `.cpp` at
|
||||
configure time and generates the registration shim. Free-function tests can
|
||||
use `// @tag` and `// @skip` comment metadata.
|
||||
use `// @tag` and `// @skip` comment metadata. A file whose tests all need
|
||||
C++26 reflection can declare `// @requires-reflection`; it is skipped when
|
||||
the compiler lacks the `VOID_HAS_CXX26_REFLECTION` capability, because the
|
||||
scanner cannot evaluate `#ifdef` guards around test functions.
|
||||
Reference in new issue
Block a user