9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen Common utilities for dbus based tests.
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen Stef Walter <stefw@redhat.com>
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen Copyright (C) Red Hat, Inc 2014
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen This program is free software; you can redistribute it and/or modify
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen it under the terms of the GNU General Public License as published by
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen the Free Software Foundation; either version 3 of the License, or
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen (at your option) any later version.
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen This program is distributed in the hope that it will be useful,
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen but WITHOUT ANY WARRANTY; without even the implied warranty of
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen GNU General Public License for more details.
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen You should have received a copy of the GNU General Public License
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen along with this program. If not, see <http://www.gnu.org/licenses/>.
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen /* Used for synchronization */
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen /* Only used during init */
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen * If you think we're going to do full error propagation during tests ...
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen * you're going to have a bad time (reading this code)
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen do { if ((x) != (y)) { fprintf(stderr, "failed: %s == %s\n", #x, #y); abort(); } } while (0)
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen do { if ((x) == (y)) { fprintf(stderr, "failed: %s != %s\n", #x, #y); abort(); } } while (0)
return EOK;
void *data)
return EOK;
void *data)
*stop_server = true;
while(!stop_server) {
struct DBusConnection *
void *init_pvt_data)
_exit(0);
return reply;