Hacker News new | past | comments | ask | show | jobs | submit login

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.




I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: