tests: match task names by basename; path-tolerant harness regexes
processRunning compared literal names against task names that are now full binary paths; the acpi-ps2/usb-report harness regexes assumed unprefixed driver names in device-manager spawn/restart lines.
This commit is contained in:
@@ -3242,7 +3242,8 @@ fn processRunning(name: []const u8) bool {
|
||||
var table: [64]abi.ProcessDescriptor = undefined;
|
||||
const total = scheduler.enumerate(&table);
|
||||
for (table[0..@min(total, table.len)]) |d| {
|
||||
if (std.mem.eql(u8, d.name[0..d.name_length], name)) return true;
|
||||
// Task names are full binary paths; callers pass either form.
|
||||
if (std.mem.eql(u8, initial_ramdisk.basename(d.name[0..d.name_length]), name)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user