mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
fix double execution of tests
This commit is contained in:
+3
-3
@@ -5548,6 +5548,9 @@ gb_internal void remove_neighbouring_duplicate_entires_from_sorted_array(Array<E
|
|||||||
|
|
||||||
|
|
||||||
gb_internal void check_test_procedures(Checker *c) {
|
gb_internal void check_test_procedures(Checker *c) {
|
||||||
|
gb_sort_array(c->info.testing_procedures.data, c->info.testing_procedures.count, init_procedures_cmp);
|
||||||
|
remove_neighbouring_duplicate_entires_from_sorted_array(&c->info.testing_procedures);
|
||||||
|
|
||||||
if (build_context.test_names.entries.count == 0) {
|
if (build_context.test_names.entries.count == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -5566,9 +5569,6 @@ gb_internal void check_test_procedures(Checker *c) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gb_sort_array(c->info.testing_procedures.data, c->info.testing_procedures.count, init_procedures_cmp);
|
|
||||||
remove_neighbouring_duplicate_entires_from_sorted_array(&c->info.testing_procedures);
|
|
||||||
|
|
||||||
for (isize i = 0; i < c->info.testing_procedures.count; /**/) {
|
for (isize i = 0; i < c->info.testing_procedures.count; /**/) {
|
||||||
Entity *e = c->info.testing_procedures[i];
|
Entity *e = c->info.testing_procedures[i];
|
||||||
String name = e->token.string;
|
String name = e->token.string;
|
||||||
|
|||||||
Reference in New Issue
Block a user