mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
test: Fix incorrect interpretation of -Dtest-filter=... for test-debugger.
This commit is contained in:
parent
16b331f5fd
commit
90e8af98eb
1 changed files with 4 additions and 2 deletions
|
|
@ -2442,8 +2442,10 @@ fn addTest(
|
||||||
db_argv2: []const []const u8,
|
db_argv2: []const []const u8,
|
||||||
expected_output: []const []const u8,
|
expected_output: []const []const u8,
|
||||||
) void {
|
) void {
|
||||||
|
if (db.options.test_filters.len > 0) {
|
||||||
for (db.options.test_filters) |test_filter| {
|
for (db.options.test_filters) |test_filter| {
|
||||||
if (std.mem.indexOf(u8, name, test_filter)) |_| return;
|
if (std.mem.indexOf(u8, name, test_filter) != null) break;
|
||||||
|
} else return;
|
||||||
}
|
}
|
||||||
if (db.options.test_target_filters.len > 0) {
|
if (db.options.test_target_filters.len > 0) {
|
||||||
const triple_txt = target.resolved.result.zigTriple(db.b.allocator) catch @panic("OOM");
|
const triple_txt = target.resolved.result.zigTriple(db.b.allocator) catch @panic("OOM");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue