~charlesk/platform-api/alarm-api

« back to all changes in this revision

Viewing changes to tests/alarms/clockapp.cpp

  • Committer: Charles Kerr
  • Date: 2014-03-22 23:07:05 UTC
  • Revision ID: charles.kerr@canonical.com-20140322230705-8zjioe5ujs6nf8ka
minor revisions to the tests' setup logging

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
                                           const UAAlarmsId*, size_t,
33
33
                                           void* something_happened)
34
34
    {
 
35
        g_debug("something happened");
35
36
        *static_cast<bool*>(something_happened) = true;
36
37
    }
37
38
 
57
58
        ua_alarms_session_set_alarm_removed_handler(session, something_happened_handler, &something_happened);
58
59
        while (!something_happened && (g_timer_elapsed(timer,nullptr)<max_seconds))
59
60
          wait_msec();
60
 
        g_debug("(waited %d seconds for something to happen in the UA alarm session", (int)g_timer_elapsed(timer,nullptr));
 
61
        g_debug("(waited %d seconds for something to happen in the UA alarm session)", (int)g_timer_elapsed(timer,nullptr));
61
62
        g_timer_destroy(timer);
62
63
 
63
64
        // reset the handler