Skip to content

Commit

Permalink
#714 add quarantined test for reproducing cycle bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed May 4, 2022
1 parent b8d363c commit aaa7e52
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@
"on_delete_cyclic_storage_table_2",
"on_delete_cyclic_storage_table_3",
"on_delete_cyclic_set_empty",
"2_acyclic_relations_w_cycle",
"on_delete_remove_2_comps",
"on_delete_remove_2_comps_to_existing_table",
"on_delete_delete_recursive",
Expand Down
17 changes: 17 additions & 0 deletions test/api/src/OnDelete.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,23 @@ void OnDelete_on_delete_cyclic_set_empty() {
ecs_fini(world);
}

void OnDelete_2_acyclic_relations_w_cycle() {
test_quarantine("May 4th 2022");

ecs_world_t *world = ecs_init();

ecs_entity_t r1 = ecs_new_w_id(world, EcsAcyclic);
ecs_entity_t r2 = ecs_new_w_id(world, EcsAcyclic);

ecs_entity_t a = ecs_new_id(world);
ecs_entity_t b = ecs_new_id(world);

ecs_add_pair(world, a, r1, b);
ecs_add_pair(world, b, r2, a);

ecs_fini(world);
}

void OnDelete_on_delete_remove_2_comps() {
ecs_world_t *world = ecs_init();

Expand Down
7 changes: 6 additions & 1 deletion test/api/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ void OnDelete_on_delete_cyclic_storage_table(void);
void OnDelete_on_delete_cyclic_storage_table_2(void);
void OnDelete_on_delete_cyclic_storage_table_3(void);
void OnDelete_on_delete_cyclic_set_empty(void);
void OnDelete_2_acyclic_relations_w_cycle(void);
void OnDelete_on_delete_remove_2_comps(void);
void OnDelete_on_delete_remove_2_comps_to_existing_table(void);
void OnDelete_on_delete_delete_recursive(void);
Expand Down Expand Up @@ -3860,6 +3861,10 @@ bake_test_case OnDelete_testcases[] = {
"on_delete_cyclic_set_empty",
OnDelete_on_delete_cyclic_set_empty
},
{
"2_acyclic_relations_w_cycle",
OnDelete_2_acyclic_relations_w_cycle
},
{
"on_delete_remove_2_comps",
OnDelete_on_delete_remove_2_comps
Expand Down Expand Up @@ -9415,7 +9420,7 @@ static bake_test_suite suites[] = {
"OnDelete",
NULL,
NULL,
77,
78,
OnDelete_testcases
},
{
Expand Down

0 comments on commit aaa7e52

Please sign in to comment.