tests: g-file-info-filesystem-readonly fails if run more than once with fuse & bindfs installed
$ meson test g-file-info-filesystem-readonly -v
ninja: Entering directory `/home/wjt/src/gnome/glib/_build'
ninja: no work to do.
# random seed: R02S168f5007c759df6d1c2f0d6c777ce864
# Bug Reference: http://bugzilla.gnome.org/787731
1..2
# Start of g-file-info-filesystem-readonly tests
# GLib-DEBUG: posix_spawn avoided (fd close requested)
# GLib-DEBUG: posix_spawn avoided (fd close requested)
# GLib-DEBUG: posix_spawn avoided (fd close requested)
# GLib-DEBUG: posix_spawn avoided (fd close requested)
ok 1 /g-file-info-filesystem-readonly/test-fs-ro
# GLib-DEBUG: posix_spawn avoided (fd close requested)
# GLib-DEBUG: posix_spawn avoided (fd close requested)
/usr/bin/fusermount: failed to unmount /home/wjt/src/gnome/glib/_build/dir_bindfs_mountpoint: Device or resource busy
# GLib-DEBUG: posix_spawn avoided (fd close requested)
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
# GLib-DEBUG: posix_spawn avoided (fd close requested)
/usr/bin/fusermount: failed to unmount /home/wjt/src/gnome/glib/_build/dir_bindfs_mountpoint: Device or resource busy
ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor
# End of g-file-info-filesystem-readonly tests
1/1 glib:gio / g-file-info-filesystem-readonly OK 0.12 s
OK: 1
FAIL: 0
SKIP: 0
TIMEOUT: 0
$ meson test g-file-info-filesystem-readonly -v
ninja: Entering directory `/home/wjt/src/gnome/glib/_build'
ninja: no work to do.
# random seed: R02S0b9e383ca5b164f52459822632feef76
# Bug Reference: http://bugzilla.gnome.org/787731
1..2
# Start of g-file-info-filesystem-readonly tests
# GLib-DEBUG: posix_spawn avoided (fd close requested)
fusermount: failed to access mountpoint /home/wjt/src/gnome/glib/_build/dir_bindfs_mountpoint: Permission denied
Bail out! GLib-GIO-FATAL-CRITICAL: g_file_info_get_attribute_boolean: assertion 'G_IS_FILE_INFO (info)' failed
(/home/wjt/src/gnome/glib/_build/gio/tests/g-file-info-filesystem-readonly:18744): GLib-GIO-CRITICAL **: 12:45:12.612: g_file_info_get_attribute_boolean: assertion 'G_IS_FILE_INFO (info)' failed
1/1 glib:gio / g-file-info-filesystem-readonly FAIL 0.17 s (killed by signal 5 SIGTRAP)
OK: 0
FAIL: 1
SKIP: 0
TIMEOUT: 0
This doesn't happen in CI because bindfs
and fuse
are not installed in the Fedora docker image.
I had a quick stab at fixing the test to fail on the errors that are currently ignored, and then to not fail. WIP MR to follow.