~clint-fewbar/ubuntu/oneiric/upstart/add-plymouth-messages

« back to all changes in this revision

Viewing changes to util/tests/test_initctl.c

  • Committer: Colin Watson
  • Date: 2011-06-23 14:24:49 UTC
  • mfrom: (1316.1.3 ubuntu-upstart)
  • Revision ID: cjwatson@canonical.com-20110623142449-etfog8caqqc5yhpo
Tags: 1.3-0ubuntu3
merge lp:~jamesodhunt/ubuntu/oneiric/upstart/1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * test_initctl.c - test suite for util/initctl.c
4
4
 *
5
5
 * Copyright © 2010 Canonical Ltd.
6
 
 * Author: Scott James Remnant <scott@netsplit.com>.
 
6
 * Authors: Scott James Remnant <scott@netsplit.com>,
 
7
 *          James Hunt <james.hunt@canonical.com>.
7
8
 *
8
9
 * This program is free software; you can redistribute it and/or modify
9
10
 * it under the terms of the GNU General Public License version 2, as
237
238
extern NihDBusProxy *upstart_open (const void *parent)
238
239
        __attribute__ ((warn_unused_result, malloc));
239
240
extern char *        job_status   (const void *parent,
240
 
                                   NihDBusProxy *job_class,
241
 
                                   NihDBusProxy *job)
 
241
                                   NihDBusProxy *job_class, NihDBusProxy *job)
242
242
        __attribute__ ((warn_unused_result, malloc));
243
243
 
244
244
extern int start_action                (NihCommand *command, char * const *args);
14440
14440
main (int   argc,
14441
14441
      char *argv[])
14442
14442
{
14443
 
 
14444
14443
        nih_error_init ();
14445
14444
        nih_timer_init ();
14446
14445
        nih_signal_init ();
14447
14446
        nih_child_init ();
14448
14447
        nih_main_loop_init ();
14449
14448
        program_name = "test";
 
14449
 
14450
14450
        test_upstart_open ();
14451
14451
        test_job_status ();
14452
14452