daemon: Fix self test config file location for newer automake

More sub-dirs. We should really find a better way to do that in the
future.
This commit is contained in:
Bastien Nocera 2015-09-23 17:08:08 +02:00
parent d5ec9d4f29
commit 34caba2964

View file

@ -299,7 +299,7 @@ main (int argc, char **argv)
if (g_file_test ("../etc/UPower.conf", G_FILE_TEST_EXISTS))
g_setenv ("UPOWER_CONF_FILE_NAME", "../etc/UPower.conf", TRUE);
else
g_setenv ("UPOWER_CONF_FILE_NAME", "../../etc/UPower.conf", TRUE);
g_setenv ("UPOWER_CONF_FILE_NAME", "../../../etc/UPower.conf", TRUE);
/* tests go here */
g_test_add_func ("/power/backend", up_test_backend_func);