5 ms·
Other languages can use LD_PRELOAD (or DLL injection on Windows) as long as the binary isn't statically linked. See other comments in the thread about libfaket
by Brybry 3y ago
Other languages can use LD_PRELOAD (or DLL injection on Windows) as long as the binary isn't statically linked.
See other comments in the thread about libfaketime.
- pmontra 3y agoI read the documentation about libfaketime and I saw that it doesn't work in combination with other libraries that also play with LD_PRELOAD. Timecop could fail if something else also wraps the date and time classes but its block scoped form should keep working. I didn't check. Furthermore I don't know what's out there that does it. I should write my own code.