Recently I had to test an application for a strange date/ time calculation bug related to leap years. The issue with this bug was that it manifested only on the 29th of February, so you had to set the time of the system accordingly. This is where the libfaketime comes into play. After installation (most distributions have it included in their standard repositories) you can use it like this:
faketime '2012-02-29 13:33:37' some_script
No comments:
Post a Comment