Skip to content

Backport !4217 “tests: Test against a sample mtab file in unix-mounts for getmntent()” to glib-2-82

The test in unix-mounts to see whether g_unix_mounts_get_from_file() can parse an example file was working fine when GLib is built with libmount, but not when built without it (and hence typically using getmntent()).

This is because libmount supports mountinfo files (like /proc/self/mountinfo), but getmntent() only supports mount files (like /proc/mounts). The test was written only with the former.

So, change the test to use mount files when GLib is built without libmount support.

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

Fixes: #3456 (closed)


Trivial backport of !4217 (merged) to glib-2-82.

Merge request reports