diff options
author | Iain Lane <iain.lane@canonical.com> | 2014-08-20 13:18:14 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-08-22 13:18:10 +0100 |
commit | 91f4f6a660e6962f3855d9d80b0a4b7d2be7741e (patch) | |
tree | eee8039536f1cc06d96be52a94f461988ce89cb2 /lib | |
parent | 9ea0e674ffa41c1def7fccb15582fe9ad4afece5 (diff) | |
download | colord-91f4f6a660e6962f3855d9d80b0a4b7d2be7741e.tar.gz |
There is no seat if running in a chroot
Signed-off-by: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/colord/cd-test-daemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/colord/cd-test-daemon.c b/lib/colord/cd-test-daemon.c index 1534a3d..8f3e71f 100644 --- a/lib/colord/cd-test-daemon.c +++ b/lib/colord/cd-test-daemon.c @@ -2252,7 +2252,8 @@ colord_device_seat_func (void) /* check the seat */ #ifdef HAVE_LIBSYSTEMD_LOGIN tmp = cd_device_get_seat (device); - g_assert_cmpstr (tmp, ==, "seat0"); + if (tmp != NULL) + g_assert_cmpstr (tmp, ==, "seat0"); #endif /* delete device */ |