The expectation tests the PID is supplied by SocketMessenger::creator_creds() - which identifies the process on the other end of the socket - which happens in the test execution.
In when_prompt_provider_connects_over_fd_prompt_provider_added_with_right_pid the socket is connected to DummyPromptProvider and the PID is from the current process.
In byclient_pid_is_associated_with_session the socket is connected to another process (started with popen) and has a different PID.
I'll try updating my OS and see if I can reproduce.
The expectation tests the PID is supplied by SocketMessenger ::creator_ creds() - which identifies the process on the other end of the socket - which happens in the test execution.
In when_prompt_ provider_ connects_ over_fd_ prompt_ provider_ added_with_ right_pid the socket is connected to DummyPromptProvider and the PID is from the current process.
In byclient_ pid_is_ associated_ with_session the socket is connected to another process (started with popen) and has a different PID.
I'll try updating my OS and see if I can reproduce.