Test whether GLib error is caused by patch or by restrictive environment