| ... | @@ -3875,7 +3875,8 @@ static void preview_test_decl(CodeGen *g, AstNode *node, ScopeDecls *decls_scope | ... | @@ -3875,7 +3875,8 @@ static void preview_test_decl(CodeGen *g, AstNode *node, ScopeDecls *decls_scope |
| 3875 | Buf *test_name = g->test_name_prefix ? | 3875 | Buf *test_name = g->test_name_prefix ? |
| 3876 | buf_sprintf("%s%s", buf_ptr(g->test_name_prefix), buf_ptr(decl_name_buf)) : decl_name_buf; | 3876 | buf_sprintf("%s%s", buf_ptr(g->test_name_prefix), buf_ptr(decl_name_buf)) : decl_name_buf; |
| 3877 | | 3877 | |
| 3878 | if (g->test_filter != nullptr && strstr(buf_ptr(test_name), buf_ptr(g->test_filter)) == nullptr) { | 3878 | if (g->test_filter != nullptr && buf_len(test_name) > 0 && |
| | 3879 | strstr(buf_ptr(test_name), buf_ptr(g->test_filter)) == nullptr) { |
| 3879 | return; | 3880 | return; |
| 3880 | } | 3881 | } |
| 3881 | | 3882 | |