mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
swift-reflection-test: Don't leave test process hanging
This commit is contained in:
@@ -417,15 +417,14 @@ static int doDumpHeapInstance(std::string BinaryFilename) {
|
||||
|
||||
error = mach_port_deallocate(mach_task_self(), childPort);
|
||||
guardMachError(error, "mach_port_deallocate");
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
kill(pid, SIGTERM);
|
||||
|
||||
error = task_set_bootstrap_port(mach_task_self(), bootstrap_port);
|
||||
guardMachError(error, "reset task_set_bootstrap_port");
|
||||
|
||||
kill(pid, SIGTERM);
|
||||
|
||||
error = mach_port_deallocate(mach_task_self(), childPort);
|
||||
guardMachError(error, "mach_port_deallocate");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user