~ubuntu-branches/debian/sid/upstart/sid

« back to all changes in this revision

Viewing changes to nih/test_list.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-07-23 00:24:02 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090723002402-pm5tq3kkipr18q00
Tags: 0.6.2-1
* New major upstream release. Closes: #530348
* Remove patches that have been merged upstream or are obsolete
  - debian/patches/01-limits.patch
  - debian/patches/02-telinit-u.patch
  - debian/patches/03-static-convenience-libs.patch
* Add Build-Depends on pkg-config (>= 0.22), libdbus-1-dev (>= 1.2.16) and
  libexpat1-dev (>= 2.0.0). D-Bus has replaced the home-grown IPC.
* Bump Standards-Version to 3.8.2. No further changes.
* debian/copyright
  - Update copyright years.
  - Clarify license text, Upstart is GPL-2 only.
  - Refer to the versioned GPL-2 document.
* Drop upstart-logd package. The logd daemon has been buggy for quite a
  while and thus removed completely upstream.
* debian/upstart.postinst
  - Use "telinit u" to tell init to re-exec itself.
* debian/rules
  - Remove obsolete configure flag.
  - Use dh_install instead of copying the job files around manually.
* Merge the upstart-compat-sysv, startup-tasks and system-services package
  into a single upstart package to avoid any unnecessary diversion between
  the Debian and Ubuntu packaging.
* The location of the job files has changed from /etc/event.d to /etc/init,
  in addition a *.conf suffix is now mandatory.
* Install rc.conf, rc-sysinit.conf, rcS.conf and control-alt-delete.conf as
  provided by upstream.
* debian/conf/*.conf
  - Update tty job files for the new job syntax. Add a description and
    author field.
  - Add dbus-reconnect.conf which tells Upstart to reconnect to the D-Bus
    system bus when runlevel 2345 has been reached.
* Update debian/upstart.install to reflect the changes above.
* Drop debian/upstart.dirs, obsolete.
* debian/README.Debian
  - Sync relevant changes from the latest Ubuntu package.
  - Remove outdated information.
* Add initial support for upstart-job.
  upstart-job is both a virtual package and also small helper utility which
  allows to execute native upstart jobs while preserving the legacy sysv
  "/etc/init.d/<service> <action>" interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* libnih
 
2
 *
 
3
 * Copyright © 2009 Scott James Remnant <scott@netsplit.com>.
 
4
 * Copyright © 2009 Canonical Ltd.
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License version 2, as
 
8
 * published by the Free Software Foundation.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License along
 
16
 * with this program; if not, write to the Free Software Foundation, Inc.,
 
17
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
18
 */
 
19
 
 
20
#ifndef NIH_TEST_LIST_H
 
21
#define NIH_TEST_LIST_H
 
22
 
 
23
#ifndef NIH_IN_TEST_H
 
24
# error "This header may only be included by <nih/test.h>"
 
25
#endif /* NIH_IN_TEST_H */
 
26
 
 
27
#include <nih/list.h>
 
28
 
 
29
 
 
30
/**
 
31
 * TEST_LIST_EMPTY:
 
32
 * @_list: entry in list.
 
33
 *
 
34
 * Check that the list of which @_list is a member is empty, ie. that
 
35
 * @_list is the sole member.
 
36
 **/
 
37
#define TEST_LIST_EMPTY(_list) \
 
38
        if (! NIH_LIST_EMPTY (_list)) \
 
39
                TEST_FAILED ("list %p (%s) not empty as expected", \
 
40
                             (_list), #_list)
 
41
 
 
42
/**
 
43
 * TEST_LIST_NOT_EMPTY:
 
44
 * @_list: entry in list.
 
45
 *
 
46
 * Check that the list of which @_list is a member is not empty, ie. that
 
47
 * there are more members than just @_list.
 
48
 **/
 
49
#define TEST_LIST_NOT_EMPTY(_list) \
 
50
        if (NIH_LIST_EMPTY (_list)) \
 
51
                TEST_FAILED ("list %p (%s) empty, expected multiple members", \
 
52
                             (_list), #_list)
 
53
 
 
54
#endif /* NIH_TEST_LIST_H */