Paste P179

Gwenview Test #11 (urlutilstest) failed

Authored by muhlenpfordt on Mar 28 2018, 12:06 PM.
$ ./tests/auto/urlutilstest
********* Start testing of UrlUtilsTest *********
Config: Using QtTest library 5.9.1, Qt 5.9.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.2.0)
PASS : UrlUtilsTest::initTestCase()
PASS : UrlUtilsTest::testFixUserEnteredUrl(
FAIL! : UrlUtilsTest::testFixUserEnteredUrl(file:///[...]/build/ Compared values are not the same
Actual (out.url()) : "krarc:/[...]/build/"
Expected (expected.url()): "zip:/[...]/build/"
Loc: [/[...]/tests/auto/urlutilstest.cpp(40)]
FAIL! : UrlUtilsTest::testFixUserEnteredUrl(file:///[...]/build/example.cbz) Compared values are not the same
Actual (out.url()) : "krarc:/[...]/build/example.cbz"
Expected (expected.url()): "zip:/[...]/build/example.cbz"
Loc: [/[...]/tests/auto/urlutilstest.cpp(40)]
PASS : UrlUtilsTest::testFixUserEnteredUrl(file:///[...]/build/example.jpg)
PASS : UrlUtilsTest::testFixUserEnteredUrl(file:///[...]/build/example.svgz)
PASS : UrlUtilsTest::cleanupTestCase()
Totals: 5 passed, 2 failed, 0 skipped, 0 blacklisted, 8ms
********* Finished testing of UrlUtilsTest *********

Test #11 failure maybe a config problem on my side? Error log: P179.

I think I found the reason for this.
On my system I have two protocol files for application/zip:


KProtocolManager::protocolForArchiveMimetype() randomly returns one of the above protocols but the Gwenview test expects zip.