Skip to content

tests: Fix calls to deprecated API in unix-mounts tests

This fixes commit aac56f16 — I missed this while reviewing it, but the unit tests were partially changed to call the new APIs, without being fully changed. This caused the build to succeed on Linux, but fail on macOS due to using a deprecated API.

Actually, a better approach for the unit tests would be to consistently call the old APIs, as they all immediately call the new APIs. Then we get coverage of both old and new for free, at the cost of putting G_GNUC_BEGIN_IGNORE_DEPRECATIONS at the top of the test file.

Signed-off-by: Philip Withnall pwithnall@gnome.org

Helps: #3492 (closed)

Merge request reports

Loading