Tests/LibCore: Enable several tests in Windows CI

These are the set of tests that were already building and passing
with little to no modifications required.
This commit is contained in:
ayeteadoe 2025-07-13 23:31:50 -07:00 committed by Andrew Kaster
parent cd15b1a2c9
commit 9d7971c111
Notes: github-actions[bot] 2025-08-07 02:26:35 +00:00
5 changed files with 26 additions and 11 deletions

View file

@ -217,6 +217,9 @@ int getpid()
ErrorOr<int> dup(int handle)
{
if (handle < 0) {
return Error::from_windows_error(ERROR_INVALID_HANDLE);
}
if (is_socket(handle)) {
WSAPROTOCOL_INFO pi = {};
if (WSADuplicateSocket(handle, GetCurrentProcessId(), &pi))