martinpitt / umockdev

Mock hardware devices for creating unit tests and bug reporting
https://launchpad.net/umockdev
GNU Lesser General Public License v2.1
308 stars 55 forks source link

Handle spurious "connection refused" when sending a uevent #254

Closed bobhenz-jabil closed 2 days ago

bobhenz-jabil commented 1 week ago

This error was already being handled on the connect call right above these changes, but wasn't being handled on the call to sendmsg. Depending on the timing it was possible for the connect call to succeed while the sendmsg call failed with an ECONNREFUSED error leading to the test crashing from the abort call.

bobhenz-jabil commented 6 days ago

@martinpitt: I'm back with another PR. Let me know if you have questions or want changes.