aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin Sjöberg <mail@kevinsjoberg.com>2021-11-10 15:46:34 +0100
committerKevin Sjöberg <mail@kevinsjoberg.com>2021-11-10 15:49:23 +0100
commit61b02adc50603fce6f4d9af486eda8ca5add1898 (patch)
treee52d46011fdf7b78789e36d4fcae6306a02782d4 /src
parent989ddbd688c5a8181ea6f7b8c4b28322a691e911 (diff)
Do not filter test procedures when filter is empty
If `build_context.test_names` is empty, we do not need to perform any filtering.
Diffstat (limited to 'src')
-rw-r--r--src/checker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index cffaad348..695606a38 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -4773,6 +4773,10 @@ void check_unchecked_bodies(Checker *c) {
}
void check_test_procedures(Checker *c) {
+ if (build_context.test_names.entries.count == 0) {
+ return;
+ }
+
AstPackage *pkg = c->info.init_package;
Scope *s = pkg->scope;