linux - How to test system reboot time more than a year? -


i want test code against linux system not rebooted since year. didn't find system not rebooted since last 2 months. there way simulate it?

i tried weird way change system time year , rebooted system , change date current time. won't solve problem.

i want test against big integer counters.

there multiple ways check latest boot time, instance:

% last reboot | head -n 1 reboot           ~                         tue aug 13 09:56  % sysctl kern.boottime kern.boottime: { sec = 1376377004, usec = 264281 } tue aug 13 09:56:44 2013 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -