"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/test-utils-glib.h" between
dbus-1.13.12.tar.xz and dbus-1.13.14.tar.xz

About: D-Bus is an inter-process communication (IPC) system, allowing multiple, concurrently-running applications to communicate with one another. D-Bus supplies both a system daemon and a per-user-login-session daemon. Development version.

test-utils-glib.h  (dbus-1.13.12.tar.xz):test-utils-glib.h  (dbus-1.13.14.tar.xz)
skipping to change at line 48 skipping to change at line 48
* Multi-user support for regression tests run with root privileges in * Multi-user support for regression tests run with root privileges in
* a continuous integration system. * a continuous integration system.
* *
* A developer would normally run the tests as their own uid. Tests run * A developer would normally run the tests as their own uid. Tests run
* as TEST_USER_ME are run, and the others are skipped. * as TEST_USER_ME are run, and the others are skipped.
* *
* In a CI system that has access to root privileges, most tests should still * In a CI system that has access to root privileges, most tests should still
* be run as an arbitrary non-root user, as above. * be run as an arbitrary non-root user, as above.
* *
* Certain tests can usefully be run again, as root. When this is done, * Certain tests can usefully be run again, as root. When this is done,
* tests using TEST_USER_ROOT, TEST_USER_MESSAGEBUS and/or TEST_USER_OTHER * tests using a TestUser other than TEST_USER_ME can exercise situations
* can exercise situations that only arise when there's more than one uid. * that only arise when there's more than one uid.
*/ */
typedef enum { typedef enum {
/* Whatever user happens to be running the regression test; /* Whatever user happens to be running the regression test;
* such tests also work on Windows */ * such tests also work on Windows */
TEST_USER_ME, TEST_USER_ME,
/* Must be uid 0 on Unix; the test is skipped on Windows */ /* Must be uid 0 on Unix; the test is skipped on Windows */
TEST_USER_ROOT, TEST_USER_ROOT,
/* The user who would normally run the system bus. This is the DBUS_USER /* The user who would normally run the system bus. This is the DBUS_USER
* from configure.ac, usually 'messagebus' but perhaps 'dbus' or * from configure.ac, usually 'messagebus' but perhaps 'dbus' or
* '_dbus'. */ * '_dbus'. */
TEST_USER_MESSAGEBUS, TEST_USER_MESSAGEBUS,
/* Run as uid 0, expecting to drop privileges to the user who would
* normally run the system bus (so we must skip the test if that user
* doesn't exist). Only valid for test_get_dbus_daemon(), not for
* test_connect_to_bus_as_user(). */
TEST_USER_ROOT_DROP_TO_MESSAGEBUS,
/* An unprivileged user who is neither root nor DBUS_USER. /* An unprivileged user who is neither root nor DBUS_USER.
* This is DBUS_TEST_USER from configure.ac, usually 'nobody'. */ * This is DBUS_TEST_USER from configure.ac, usually 'nobody'. */
TEST_USER_OTHER TEST_USER_OTHER
} TestUser; } TestUser;
#define test_assert_no_error(e) _test_assert_no_error (e, __FILE__, __LINE__) #define test_assert_no_error(e) _test_assert_no_error (e, __FILE__, __LINE__)
void _test_assert_no_error (const DBusError *e, void _test_assert_no_error (const DBusError *e,
const char *file, const char *file,
int line); int line);
 End of changes. 2 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)