Browse Source

Merge pull request #1296 from kevinsjoberg/do-not-filter-tests-when-empty

Do not filter test procedures when filter is empty
gingerBill 3 years ago
parent
commit
1e453cf1d7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/checker.cpp

+ 4 - 0
src/checker.cpp

@@ -4842,6 +4842,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;