GLib Mock (glib-mock), Mocking framework, MVP stage

A few days ago, I created this post about an idea I had about a mocking framework for GLib.

I immediately started development of it as a separate project, and today, it has reached an MVP stage, Linux is officially supported and tests are passing, unfortunately, Windows is not passing tests, I thought that Windows was going to work as well following the Linux approach (let the loader “automagically” link the mock function instead of the original), but no, the DLLs and the EXE have different IAT addresses/locations, so IAT hooking must be implemented for Windows.

Help is needed and very much appreciated for MacOS tests (:

Official repository:

2 Likes

Andddd Windows test are passing! :partying_face: IAT hooking has been implemented!

Now I need to somehow find a way to test MacOS, even though I don’t have a MacOS PC.

EDIT: Installing hackintosh in order to continue with testing :eyes:

Anddd macOS tests are passing as well! :partying_face:

Now, the 3 main OS platforms are supported, as well as the Cygwin distro on Windows.