@@ -50,6 +50,7 @@ struct GeneratesOnConstrution : public IntVecCmd {
5050#endif // defined(__GNUC__) || defined(__clang__)
5151
5252TEST_CASE (" state::gen::execOneOf" ) {
53+ #ifdef RC_USE_RTTI
5354 prop (" returns one of the commands" ,
5455 [](const GenParams ¶ms, const IntVec &s0) {
5556 const auto cmd =
@@ -73,6 +74,7 @@ TEST_CASE("state::gen::execOneOf") {
7374 }
7475 RC_SUCCEED (" All generated" );
7576 });
77+ #endif
7678
7779 prop (" uses state constructor if there is one, passing it the state" ,
7880 [](const GenParams ¶ms, const IntVec &s0) {
@@ -96,6 +98,7 @@ TEST_CASE("state::gen::execOneOf") {
9698#endif // defined(__GNUC__) || defined(__clang__)
9799
98100TEST_CASE (" state::gen::execOneOfWithArgs" ) {
101+ #ifdef RC_USE_RTTI
99102 prop (" returns one of the commands" ,
100103 [](const GenParams ¶ms, const IntVec &s0) {
101104 const auto cmd = state::gen::execOneOfWithArgs<A, B, C>()()(
@@ -119,6 +122,7 @@ TEST_CASE("state::gen::execOneOfWithArgs") {
119122 }
120123 RC_SUCCEED (" All generated" );
121124 });
125+ #endif
122126
123127 prop (" uses args constructor if there is one, passing it the state" ,
124128 [](const GenParams ¶ms, const std::string &str, int num) {
0 commit comments