Skip to content

Fix whitespace and error behaviour for _dbus_command_from_pid()

Simon McVittie requested to merge smcv/dbus:222-comm-whitespace into master

In addition to fixing the additional space reported in #222 (closed), this branch adds test coverage, and fixes the error behaviour of the Windows implementation.

See individual commits:

  • sysdeps: Remove trailing NUL from command lines from /proc
  • tests: Build test-sleep-forever even if embedded tests are disabled
  • tests: Add a unit test for _dbus_command_for_pid()
  • sysdeps: Return an error for _dbus_command_for_pid on Windows
  • tests: Assert that _dbus_command_for_pid() has correct error behaviour

Closes #222 (closed)

Merge request reports