Treat root as a valid candidate for TEST_USER_ME
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 3 Feb 2015 19:35:39 +0000 (19:35 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 3 Feb 2015 19:35:39 +0000 (19:35 +0000)
commit3cf71c2707f861c929054e31ec83fab6021109dc
tree563323f272d54b397a103beb8559bdc6e1ebfc2a
parentb1c54b5a75824e765ecc27b5820c8e9fa0cbaaed
Treat root as a valid candidate for TEST_USER_ME

If spawn_dbus_daemon() can fail for TEST_USER_ME, then we'd have to
go through all the tests adding the ability to skip tests after
it fails, which is a fairly extensive change.

The tests have historically all run as whatever uid is supplied, and
if the tests are being run as root for some reason - perhaps in a CI
framework for an embedded platform that doesn't have non-root users,
or in an environment where you can be root or non-root but not both -
there is no particular reason to skip them.
test/test-utils-glib.c
test/test-utils-glib.h