Commit 0d8c941f authored by Dominik Charousset's avatar Dominik Charousset

Make testing DSL more robust

parent 92d22eed
...@@ -541,17 +541,17 @@ struct test_coordinator_fixture { ...@@ -541,17 +541,17 @@ struct test_coordinator_fixture {
#define expect(types, fields) \ #define expect(types, fields) \
CAF_MESSAGE("expect" << #types << "." << #fields); \ CAF_MESSAGE("expect" << #types << "." << #fields); \
expect_impl< CAF_EXPAND(CAF_DSL_LIST types) >().fields expect_clause< CAF_EXPAND(CAF_DSL_LIST types) >{sched} . fields
#define expect_on(where, types, fields) \ #define expect_on(where, types, fields) \
CAF_MESSAGE(#where << ": expect" << #types << "." << #fields); \ CAF_MESSAGE(#where << ": expect" << #types << "." << #fields); \
where . expect_impl< CAF_EXPAND(CAF_DSL_LIST types) >().fields expect_clause< CAF_EXPAND(CAF_DSL_LIST types) >{where . sched} . fields
#define disallow(types, fields) \ #define disallow(types, fields) \
CAF_MESSAGE("disallow" << #types << "." << #fields); \ CAF_MESSAGE("disallow" << #types << "." << #fields); \
disallow_impl< CAF_EXPAND(CAF_DSL_LIST types) >().fields disallow_clause< CAF_EXPAND(CAF_DSL_LIST types) >{sched} . fields
#define disallow_on(where, types, fields) \ #define disallow_on(where, types, fields) \
CAF_MESSAGE(#where << ": disallow" << #types << "." << #fields); \ CAF_MESSAGE(#where << ": disallow" << #types << "." << #fields); \
where . disallow_impl< CAF_EXPAND(CAF_DSL_LIST types) >().fields disallow_clause< CAF_EXPAND(CAF_DSL_LIST types) >{where . sched} . fields
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment