| ... | @@ -2442,8 +2442,10 @@ fn addTest( | ... | @@ -2442,8 +2442,10 @@ fn addTest( |
| 2442 | db_argv2: []const []const u8, | 2442 | db_argv2: []const []const u8, |
| 2443 | expected_output: []const []const u8, | 2443 | expected_output: []const []const u8, |
| 2444 | ) void { | 2444 | ) void { |
| 2445 | for (db.options.test_filters) |test_filter| { | 2445 | if (db.options.test_filters.len > 0) { |
| 2446 | if (std.mem.indexOf(u8, name, test_filter)) |_| return; | 2446 | for (db.options.test_filters) |test_filter| { |
| | 2447 | if (std.mem.indexOf(u8, name, test_filter) != null) break; |
| | 2448 | } else return; |
| 2447 | } | 2449 | } |
| 2448 | if (db.options.test_target_filters.len > 0) { | 2450 | if (db.options.test_target_filters.len > 0) { |
| 2449 | const triple_txt = target.resolved.result.zigTriple(db.b.allocator) catch @panic("OOM"); | 2451 | const triple_txt = target.resolved.result.zigTriple(db.b.allocator) catch @panic("OOM"); |