~xnox/upstart/fix-1234841

« back to all changes in this revision

Viewing changes to util/tests/test_initctl.c

  • Committer: Dmitrijs Ledkovs
  • Date: 2013-11-06 03:41:04 UTC
  • mfrom: (1553.1.1 upstart)
  • Revision ID: dmitrijs.ledkovs@canonical.com-20131106034104-3ltq4qs5bma23pmq
Skip quiesce tests, when precise timing information is not available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17132
17132
        test_job_env ();
17133
17133
        test_reexec ();
17134
17134
        test_list_sessions ();
17135
 
        test_quiesce ();
 
17135
        if (have_timed_waitpid ()) {
 
17136
                test_quiesce ();
 
17137
        } else {
 
17138
                fprintf (stderr, "\n\n"
 
17139
                                "WARNING: not running quiesce tests, "
 
17140
                                "as no precise timing information available "
 
17141
                                "\n\n");
 
17142
        }
 
17143
 
17136
17144
        test_umask ();
17137
17145
        test_no_dbus ();
17138
17146
 
17139
17147
        if (in_chroot () && !dbus_configured ()) {
17140
 
                fprintf(stderr, "\n\n"
 
17148
                fprintf (stderr, "\n\n"
17141
17149
                                "WARNING: not running show-config, "
17142
17150
                                "check-config & notify-disk-writeable tests within chroot "
17143
17151
                                "as no D-Bus, or D-Bus not configured (lp:#728988)"