I investigated this bug, and it happens because QFileInfo::ownerId()
returns -2 while inspecting the runtime directory. The documentation
says:
On Windows and on systems where files do not have owners this
function returns ((uint) -2).
It's not clear though, why would this be returning -2 under pbuilder,
given that the filesystem seems to support ownership.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-system-settings-
online-accounts in Ubuntu.
https://bugs.launchpad.net/bugs/1614108
Title:
QStandardPaths::RuntimeLocation returns empty string under pbuilder
Status in webapps-sprint:
In Progress
Status in qtbase-opensource-src package in Ubuntu:
New
Status in ubuntu-system-settings-online-accounts package in Ubuntu:
In Progress
Bug description:
The unit tests for ubuntu-system-settings-online-accounts are failing
when run under pbuilder:
==================
task-0: ********* Start testing of UiProxyTest *********
task-0: Config: Using QtTest library 5.5.1, Qt 5.5.1
(x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1
20160519)
task-0: PASS : UiProxyTest::initTestCase()
task-0: PASS : UiProxyTest::testInit()
task-0: QWARN : UiProxyTest::testRequest(success) QStandardPaths: wrong
ownership on runtime directory /run/user/1001, -2 instead of 1234
task-0: QWARN : UiProxyTest::testRequest(success) Couldn't setup IPC socket
task-0: FAIL! : UiProxyTest::testRequest(success)
'(!remoteProcesses.isEmpty())' returned FALSE. ()
task-0: Loc: [tst_ui_proxy.cpp(319)]
==================
I've debugged the issue, and I've verified that
QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation) is
returning an empty string. Although it's documented that in some
systems that function can return NULL, it would be better if it didn't
:-)
To manage notifications about this bug go to:
https://bugs.launchpad.net/webapps-sprint/+bug/1614108/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp