On Fri, Feb 14, 2014 at 5:21 PM, Andy Bach <afb...@gmail.com> wrote: > > On Fri, Feb 14, 2014 at 3:21 PM, shawn wilson <ag4ve...@gmail.com> wrote: >> >> What I want is to be able to make a program /think/ that it's like a >> week in the future > > > Not sure ... not understanding this question - which part of the program do > you want to fool? You mean, you want > print scalar localtime(), "\n"; > > to print > Fri Feb 21 16:21:11 2014 >
Yes, and works the same with Date::Time etc. So basically, I have a long running process and it flushes and reports on SIGUSR1. And I never figured out how to test to see if it actually flushed old data. And, now we have noticed that it actually isn't flushing old data (oops). So, since I have to revisit this, I figured I'd actually write a proper test case for it. However, I don't know how to shift time around so that it looks legit to everything. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/