| ... | ... | @@ -45,8 +45,9 @@ pub fn addTarget(libc: *const Libc, target: std.Build.ResolvedTarget) void { |
| 45 | 45 | } else false; |
| 46 | 46 | if (!want_debug) return; |
| 47 | 47 | |
| 48 | const triple_txt = target.query.zigTriple(libc.b.allocator) catch @panic("OOM"); |
| 49 | |
| 48 | 50 | if (libc.options.test_target_filters.len > 0) { |
| 49 | | const triple_txt = target.query.zigTriple(libc.b.allocator) catch @panic("OOM"); |
| 50 | 51 | for (libc.options.test_target_filters) |filter| { |
| 51 | 52 | if (std.mem.find(u8, triple_txt, filter)) |_| break; |
| 52 | 53 | } else return; |
| ... | ... | @@ -75,7 +76,7 @@ pub fn addTarget(libc: *const Libc, target: std.Build.ResolvedTarget) void { |
| 75 | 76 | }); |
| 76 | 77 | |
| 77 | 78 | for (libc.test_cases.items) |*test_case| { |
| 78 | | const annotated_case_name = libc.b.fmt("run libc-test {s}", .{test_case.name}); |
| 79 | const annotated_case_name = libc.b.fmt("run libc-test {s} ({s})", .{ test_case.name, triple_txt }); |
| 79 | 80 | for (libc.options.test_filters) |test_filter| { |
| 80 | 81 | if (std.mem.find(u8, annotated_case_name, test_filter)) |_| break; |
| 81 | 82 | } else if (libc.options.test_filters.len > 0) continue; |