mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
As with the previous commit, finding a `GIBaseInfo` matching the given error domain was non-deterministic because it iterated through a hash table of typelibs. Hash table iteration is non-deterministic. Change the method to instead use the `ordered_typelibs` and `ordered_lazy_typelibs` arrays to give deterministic iteration order. Add a unit test, although it can’t test the interesting case of an error domain which is present in both `GioUnix`/`GioWin32` and `Gio`, because no such error domain exists. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3303