Unit Tests

- Improved args.5.t, which was attempting to stop tasks that were
  not started.
This commit is contained in:
Paul Beckingham 2011-07-10 18:04:49 -04:00
parent d5849b0160
commit 8e0296468e
4 changed files with 18 additions and 3 deletions

View file

@ -150,6 +150,16 @@ void Task::setEnd ()
recalc_urgency = true;
}
////////////////////////////////////////////////////////////////////////////////
void Task::setStart ()
{
char startTime[16];
sprintf (startTime, "%u", (unsigned int) time (NULL));
set ("start", startTime);
recalc_urgency = true;
}
////////////////////////////////////////////////////////////////////////////////
Task::status Task::getStatus () const
{