aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-12-27 15:58:19 +0100
committerGitHub <noreply@github.com>2023-12-27 15:58:19 +0100
commit33d85adf349e9f626443c448b88fbe0ba75313c1 (patch)
tree9629fa68b6140bfe9f2d25b9c3ccdb07cb038fa7 /src/checker.cpp
parent68d2b7bb899f7fea53a626289aadcbb410ef6b8f (diff)
parent383d485e2ad33e3e23f3df4a8e2b64942136cc52 (diff)
Merge pull request #3051 from laytan/fix-double-execution-of-tests
fix double execution of tests
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 723b5bb07..79328d648 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -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_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) {
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; /**/) {
Entity *e = c->info.testing_procedures[i];
String name = e->token.string;