Re:Why does man print “gimme gimme gimme” at 00:30?
by mmjaa on Tuesday November 21, 2017 @09:28AM
(#15748016)
Expect: a tool (from tcl/tk) used to write tests, whether we like it or not.
Expect that "gimme gimme gimme" is a cheap way to determine if the tests are running after midnight, nor not. If so, do more extensive tests; if not, do less burdensome tests.
I know - its lame. But, you cannot predict these things.
If you don't want people to use your Easter egg for something, don't include it in the release.. ;)
Re:Why does man print “gimme gimme gimme” at 00:30?
by emodendroket on Tuesday November 21, 2017 @02:49PM
(#15750954)
As described it only worked if you run it at exactly half-past midnight.
Re:Why does man print “gimme gimme gimme” at 00:30?
by ng12 on Tuesday November 21, 2017 @01:43PM
(#15750412)
Because dozens of junior engineers have encountered this error before. However, instead of posting on SE about it they added a branch to the test case if it was running after midnight, and at least one of them added an assert to verify the output was "gimme gimme gimme".
FWIW I love this kind of stuff and if properly documented would rather work around it than remove it, but nobody relies on my code so what do I know :).