SUMMARY Hi, I'm having issues builiding neochat_25.12.1, specifically tests 14 (actionstest), 15 (servernoticestest) and 16 (roommanagertest) randomly fail with QFATAL : ServerNoticesTest::initTestCase() Server failed to listen on a port. that seems to come out of https://invent.kde.org/network/neochat/-/blob/master/autotests/server.cpp#L127 and I have no clue what that means or what could be causing it... In my first couple of tests, tests 14 and 16 were failing with "Server failed to listen on a port.", while test 15 (servernoticestest) was passing that step "QWARN : ServerNoticesTest::initTestCase() Server listening". After noticing that 14/16 and 15 were invoked differently, I tried the following diff --git a/autotests/actionstest.cpp b/autotests/actionstest.cpp index 0ab7709b5..326841aad 100644 --- a/autotests/actionstest.cpp +++ b/autotests/actionstest.cpp @@ -147,5 +147,5 @@ void ActionsTest::testInvite() QCOMPARE(room->memberState(u"@user:example.com"_s), Membership::Invite); } -QTEST_MAIN(ActionsTest) +QTEST_GUILESS_MAIN(ActionsTest) #include "actionstest.moc" diff --git a/autotests/roommanagertest.cpp b/autotests/roommanagertest.cpp index 3f1e1571c..b7630288c 100644 --- a/autotests/roommanagertest.cpp +++ b/autotests/roommanagertest.cpp @@ -137,5 +137,5 @@ void RoomManagerTest::testResolveMatrixLinks() QTRY_COMPARE(askToJoinSpy.size(), 1); } -QTEST_MAIN(RoomManagerTest) +QTEST_GUILESS_MAIN(RoomManagerTest) #include "roommanagertest.moc" but it ended up failing on test 15 (servernoticestest) 14: ********* Start testing of ActionsTest ********* 14: Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown 14: QWARN : ActionsTest::initTestCase() Server listening 14: QINFO : ActionsTest::initTestCase() quotient.e2ee: End-to-end encryption (E2EE) support is off for "@user:localhost:1234/device_1234" 15: ********* Start testing of ServerNoticesTest ********* 15: Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown 15: QFATAL : ServerNoticesTest::initTestCase() Server failed to listen on a port. 15: FAIL! : ServerNoticesTest::initTestCase() Received a fatal error. 15: Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 2ms 15: ********* Finished testing of ServerNoticesTest ********* 15: Received signal 6 (SIGABRT) 15: initTestCase function time: 1ms, total time: 2ms 14: QINFO : ActionsTest::initTestCase() quotient.main: CS API versions: v1.0 v1.1 v1.2 v1.3 v1.4 v1.5 v1.6 v1.7 v1.8 v1.9 v1.10 v1.11 v1.12 v1.13 14: QINFO : ActionsTest::initTestCase() quotient.main: Room versions: "1" is default, full list: QList() 14: QWARN : ActionsTest::initTestCase() QJsonObject({"next_batch":"4","rooms":{"join":{"!jzdmu9GO9DJsxrlVZ41k3QZW3m0=:localhost:1234":{"state":{"events":[{"content":{"room_version":"11"},"event_id":"$bnegTv05YhLxOyFpckfQmQjo5Ik=","origin_server_ts":1768600738043,"room_id":"!jzdmu9GO9DJsxrlVZ41k3QZW3m0=:localhost:1234","sender":"@user:localhost:1234","state_key":"","type":"m.room.create","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"join"},"event_id":"$U2owm1bKC9tqk4iPbz26lEaLKiY=","origin_server_ts":1768600738043,"room_id":"!jzdmu9GO9DJsxrlVZ41k3QZW3m0=:localhost:1234","sender":"@user:localhost:1234","state_key":"@user:localhost:1234","type":"m.room.member","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"invite"},"event_id":"$xoQbeaz9PBUb3NDNE7PmvzoSo8o=","origin_server_ts":1768600738043,"room_id":"!jzdmu9GO9DJsxrlVZ41k3QZW3m0=:localhost:1234","sender":"@user:localhost:1234","state_key":"@invited:example.com","type":"m.room.member","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"ban"},"event_id":"$nOsn3zCFOmunrLPWXrouoxl38bA=","origin_server_ts":1768600738043,"room_id":"!jzdmu9GO9DJsxrlVZ41k3QZW3m0=:localhost:1234","sender":"@user:localhost:1234","state_key":"@banned:example.com","type":"m.room.member","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"join"},"event_id":"$EwZpothJilS3xW30iOsROlXygTs=","origin_server_ts":1768600738043,"room_id":"!jzdmu9GO9DJsxrlVZ41k3QZW3m0=:localhost:1234","sender":"@user:localhost:1234","state_key":"@example:example.com","type":"m.room.member","unsigned":{"age":1234}}]}}}}}) 14: QWARN : ActionsTest::initTestCase() QJsonObject({"next_batch":"4"}) 14: PASS : ActionsTest::initTestCase() 14: QWARN : ActionsTest::testActions(shrug) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(shrug) 14: QWARN : ActionsTest::testActions(lenny) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(lenny) 14: QWARN : ActionsTest::testActions(tableflip) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(tableflip) 14: QWARN : ActionsTest::testActions(unflip) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(unflip) 14: QWARN : ActionsTest::testActions(rainbow) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(rainbow) 14: QWARN : ActionsTest::testActions(rainbowme) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(rainbowme) 14: QWARN : ActionsTest::testActions(plain) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(plain) 14: QWARN : ActionsTest::testActions(spoiler) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(spoiler) 14: QWARN : ActionsTest::testActions(me) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(me) 14: QWARN : ActionsTest::testActions(notice) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(notice) 14: QWARN : ActionsTest::testActions(message) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(message) 14: QWARN : ActionsTest::testActions(invite) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(invite) 14: QWARN : ActionsTest::testInvite() QJsonObject({"next_batch":"4"}) 14: QWARN : ActionsTest::testInvite() quotient.jobs: 404 <- PUT https://localhost:1234/_matrix/client/v3/rooms/%21jzdmu9GO9DJsxrlVZ41k3QZW3m0%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380171 14: QWARN : ActionsTest::testInvite() quotient.jobs: "SendMessageJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%21jzdmu9GO9DJsxrlVZ41k3QZW3m0%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380171 - server replied: Not Found 14: QWARN : ActionsTest::testInvite() quotient.jobs: 404 <- PUT https://localhost:1234/_matrix/client/v3/rooms/%21jzdmu9GO9DJsxrlVZ41k3QZW3m0%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380172 14: QWARN : ActionsTest::testInvite() quotient.jobs: "SendMessageJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%21jzdmu9GO9DJsxrlVZ41k3QZW3m0%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380172 - server replied: Not Found 14: QWARN : ActionsTest::testInvite() quotient.jobs: 404 <- PUT https://localhost:1234/_matrix/client/v3/rooms/%21jzdmu9GO9DJsxrlVZ41k3QZW3m0%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380173 14: QWARN : ActionsTest::testInvite() quotient.jobs: "SendMessageJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%21jzdmu9GO9DJsxrlVZ41k3QZW3m0%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380173 - server replied: Not Found 14: QWARN : ActionsTest::testInvite() quotient.jobs: 404 <- PUT https://localhost:1234/_matrix/client/v3/rooms/%21jzdmu9GO9DJsxrlVZ41k3QZW3m0%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380174 14: QWARN : ActionsTest::testInvite() quotient.jobs: "SendMessageJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%21jzdmu9GO9DJsxrlVZ41k3QZW3m0%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380174 - server replied: Not Found 14: QWARN : ActionsTest::testInvite() QJsonObject({"next_batch":"6","rooms":{"join":{"!jzdmu9GO9DJsxrlVZ41k3QZW3m0=:localhost:1234":{"state":{"events":[{"content":{"displayname":"User","membership":"invite"},"event_id":"$d69b9gOZy6u+K0PNG94Qd+6uQPM=","origin_server_ts":1768600738053,"room_id":"!jzdmu9GO9DJsxrlVZ41k3QZW3m0=:localhost:1234","sender":"@user:localhost:1234","state_key":"@foo:example.com","type":"m.room.member","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"invite"},"event_id":"$IwhX75+AtNg3aGnAzgJAOZBGPYw=","origin_server_ts":1768600738053,"room_id":"!jzdmu9GO9DJsxrlVZ41k3QZW3m0=:localhost:1234","sender":"@user:localhost:1234","state_key":"@user:example.com","type":"m.room.member","unsigned":{"age":1234}}]}}}}}) 14: PASS : ActionsTest::testInvite() 14: PASS : ActionsTest::cleanupTestCase() 14: Totals: 15 passed, 0 failed, 0 skipped, 0 blacklisted, 39ms 14: ********* Finished testing of ActionsTest ********* 14/16 Test #14: actionstest ...................... Passed 0.25 sec 16: ********* Start testing of RoomManagerTest ********* 16: Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown 16: QWARN : RoomManagerTest::initTestCase() Server listening 16: QINFO : RoomManagerTest::initTestCase() quotient.e2ee: End-to-end encryption (E2EE) support is off for "@user:localhost:1234/device_1234" 16: QINFO : RoomManagerTest::initTestCase() quotient.main: CS API versions: v1.0 v1.1 v1.2 v1.3 v1.4 v1.5 v1.6 v1.7 v1.8 v1.9 v1.10 v1.11 v1.12 v1.13 16: QWARN : RoomManagerTest::initTestCase() QJsonObject({"next_batch":"1","rooms":{"join":{"!HClJMUD4k5DjPw3K2k+UgCiIYq8=:localhost:1234":{"state":{"events":[{"content":{"room_version":"11"},"event_id":"$6pVqJ9hg36rfRvf3EsK6m8ZZZxw=","origin_server_ts":1768600738093,"room_id":"!HClJMUD4k5DjPw3K2k+UgCiIYq8=:localhost:1234","sender":"@user:localhost:1234","state_key":"","type":"m.room.create","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"join"},"event_id":"$wlIhOPG2kJRU7pHZ2vOzSTW+cXY=","origin_server_ts":1768600738093,"room_id":"!HClJMUD4k5DjPw3K2k+UgCiIYq8=:localhost:1234","sender":"@user:localhost:1234","state_key":"@user:localhost:1234","type":"m.room.member","unsigned":{"age":1234}}]}}}}}) 16: QINFO : RoomManagerTest::initTestCase() quotient.main: Room versions: "1" is default, full list: QList() 16: QWARN : RoomManagerTest::initTestCase() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::initTestCase() org.kde.kunifiedpush.client: Failed to register connector D-Bus adapter! "/org/unifiedpush/Connector" 16: QWARN : RoomManagerTest::initTestCase() org.kde.kunifiedpush.client: No UnifiedPush distributor found. 16: PASS : RoomManagerTest::initTestCase() 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() quotient.jobs: 404 <- GET https://localhost:1234/_matrix/client/v3/rooms/%21HClJMUD4k5DjPw3K2k%2BUgCiIYq8%3D%3Alocalhost%3A1234/messages 16: QWARN : RoomManagerTest::testMaximizeMedia() quotient.jobs: "GetRoomEventsJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%21HClJMUD4k5DjPw3K2k%2BUgCiIYq8%3D%3Alocalhost%3A1234/messages?dir=b&limit=50 - server replied: Not Found 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"1"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2","rooms":{"join":{"!HClJMUD4k5DjPw3K2k+UgCiIYq8=:localhost:1234":{"timeline":{"events":[{"content":{"body":"Foo","format":"org.matrix.custom.html","formatted_body":"Foo","msgtype":"m.text"},"event_id":"$n3N/ZdctZwoXyyJxcGif05/88Zs=","origin_server_ts":1768600738121,"room_id":"!HClJMUD4k5DjPw3K2k+UgCiIYq8=:localhost:1234","sender":"@foo:server.com","type":"m.room.message"}]}}}}}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() quotient.jobs: 404 <- GET https://localhost:1234/_matrix/client/v3/profile/%40user%3Alocalhost%3A1234 16: QWARN : RoomManagerTest::testMaximizeMedia() quotient.jobs: "GetUserProfileJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/profile/%40user%3Alocalhost%3A1234 - server replied: Not Found 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() quotient.jobs: 404 <- PUT https://localhost:1234/_matrix/client/v3/rooms/%21HClJMUD4k5DjPw3K2k%2BUgCiIYq8%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380661 16: QWARN : RoomManagerTest::testMaximizeMedia() quotient.jobs: "SendMessageJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%21HClJMUD4k5DjPw3K2k%2BUgCiIYq8%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686007380661 - server replied: Not Found 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"2"}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"3","rooms":{"join":{"!HClJMUD4k5DjPw3K2k+UgCiIYq8=:localhost:1234":{"timeline":{"events":[{"content":{"body":"Foo","filename":"foo.jpg","info":{"h":1000,"mimetype":"image/png","size":10000,"w":2000},"msgtype":"m.image","url":"mxc://foo.bar/asdf"},"event_id":"$thvpcKueXhj2dN6DH0oek7NxPOU=","origin_server_ts":1768600738144,"room_id":"!HClJMUD4k5DjPw3K2k+UgCiIYq8=:localhost:1234","sender":"@foo:server.com","type":"m.room.message"}]}}}}}) 16: QWARN : RoomManagerTest::testMaximizeMedia() QJsonObject({"next_batch":"3"}) 16: PASS : RoomManagerTest::testMaximizeMedia() 16: QWARN : RoomManagerTest::testResolveMatrixLinks() quotient.main: Room for alias "#testbuild:matrix.org" is not found under account "@user:localhost:1234" 16: PASS : RoomManagerTest::testResolveMatrixLinks() 16: PASS : RoomManagerTest::cleanupTestCase() 16: Totals: 4 passed, 0 failed, 0 skipped, 0 blacklisted, 89ms 16: ********* Finished testing of RoomManagerTest ********* 15/16 Test #16: roommanagertest .................. Passed 0.31 sec 16/16 Test #15: servernoticestest ................Subprocess aborted***Exception: 0.52 sec ********* Start testing of ServerNoticesTest ********* Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown QFATAL : ServerNoticesTest::initTestCase() Server failed to listen on a port. FAIL! : ServerNoticesTest::initTestCase() Received a fatal error. Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 2ms ********* Finished testing of ServerNoticesTest ********* Received signal 6 (SIGABRT) initTestCase function time: 1ms, total time: 2ms 94% tests passed, 1 tests failed out of 16 Total Test time (real) = 0.73 sec The following tests FAILED: 15 - servernoticestest (Subprocess aborted) Errors while running CTest Now I've reverted that patch, getting back to neochat source code and it fails on 15/16 like the following 14: ********* Start testing of ActionsTest ********* 14: Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown 14: QWARN : ActionsTest::initTestCase() Server listening 14: QINFO : ActionsTest::initTestCase() quotient.e2ee: End-to-end encryption (E2EE) support is off for "@user:localhost:1234/device_1234" 16: ********* Start testing of RoomManagerTest ********* 16: Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown 16: QFATAL : RoomManagerTest::initTestCase() Server failed to listen on a port. 16: FAIL! : RoomManagerTest::initTestCase() Received a fatal error. 16: Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 1ms 16: ********* Finished testing of RoomManagerTest ********* 16: Received signal 6 (SIGABRT) 16: initTestCase function time: 1ms, total time: 1ms 15: ********* Start testing of ServerNoticesTest ********* 15: Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown 14: QINFO : ActionsTest::initTestCase() quotient.main: CS API versions: v1.0 v1.1 v1.2 v1.3 v1.4 v1.5 v1.6 v1.7 v1.8 v1.9 v1.10 v1.11 v1.12 v1.13 15: QFATAL : ServerNoticesTest::initTestCase() Server failed to listen on a port. 15: FAIL! : ServerNoticesTest::initTestCase() Received a fatal error. 15: Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 2ms 15: ********* Finished testing of ServerNoticesTest ********* 15: Received signal 6 (SIGABRT) 15: initTestCase function time: 1ms, total time: 2ms 14: QWARN : ActionsTest::initTestCase() QJsonObject({"next_batch":"4","rooms":{"join":{"!9ew\u0000mQghtuJ0m9XxwTQEYajMQ2U=:localhost:1234":{"state":{"events":[{"content":{"room_version":"11"},"event_id":"$q8H21me1/g5t5J+LvEY8qeyNhkw=","origin_server_ts":1768658050065,"room_id":"!9ew\u0000mQghtuJ0m9XxwTQEYajMQ2U=:localhost:1234","sender":"@user:localhost:1234","state_key":"","type":"m.room.create","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"join"},"event_id":"$aj1hlbm8Dik1YvlmbiWYhhPlE0M=","origin_server_ts":1768658050065,"room_id":"!9ew\u0000mQghtuJ0m9XxwTQEYajMQ2U=:localhost:1234","sender":"@user:localhost:1234","state_key":"@user:localhost:1234","type":"m.room.member","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"invite"},"event_id":"$8SqfQtT0CcRk8q5md+SlgRrRzIc=","origin_server_ts":1768658050065,"room_id":"!9ew\u0000mQghtuJ0m9XxwTQEYajMQ2U=:localhost:1234","sender":"@user:localhost:1234","state_key":"@invited:example.com","type":"m.room.member","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"ban"},"event_id":"$JdlNwgC22pQlqmB6ygtXGjqMcxI=","origin_server_ts":1768658050065,"room_id":"!9ew\u0000mQghtuJ0m9XxwTQEYajMQ2U=:localhost:1234","sender":"@user:localhost:1234","state_key":"@banned:example.com","type":"m.room.member","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"join"},"event_id":"$K76JFHqBM48eLXI0/Ar+y05x8Ow=","origin_server_ts":1768658050065,"room_id":"!9ew\u0000mQghtuJ0m9XxwTQEYajMQ2U=:localhost:1234","sender":"@user:localhost:1234","state_key":"@example:example.com","type":"m.room.member","unsigned":{"age":1234}}]}}}}}) 14: QINFO : ActionsTest::initTestCase() quotient.main: Room versions: "1" is default, full list: QList() 14: QWARN : ActionsTest::initTestCase() QJsonObject({"next_batch":"4"}) 14: PASS : ActionsTest::initTestCase() 14: QWARN : ActionsTest::testActions(shrug) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(shrug) 14: QWARN : ActionsTest::testActions(lenny) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(lenny) 14: QWARN : ActionsTest::testActions(tableflip) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(tableflip) 14: QWARN : ActionsTest::testActions(unflip) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(unflip) 14: QWARN : ActionsTest::testActions(rainbow) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(rainbow) 14: QWARN : ActionsTest::testActions(rainbowme) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(rainbowme) 14: QWARN : ActionsTest::testActions(plain) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(plain) 14: QWARN : ActionsTest::testActions(spoiler) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(spoiler) 14: QWARN : ActionsTest::testActions(me) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(me) 14: QWARN : ActionsTest::testActions(notice) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(notice) 14: QWARN : ActionsTest::testActions(message) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(message) 14: QWARN : ActionsTest::testActions(invite) ChatBarCache created with no parent, a NeoChatRoom must be set as the parent on creation. 14: PASS : ActionsTest::testActions(invite) 14: QWARN : ActionsTest::testInvite() QJsonObject({"next_batch":"4"}) 14: QWARN : ActionsTest::testInvite() quotient.jobs: 404 <- PUT https://localhost:1234/_matrix/client/v3/rooms/%219ew%00mQghtuJ0m9XxwTQEYajMQ2U%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686580500371 14: QWARN : ActionsTest::testInvite() quotient.jobs: "SendMessageJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%219ew%00mQghtuJ0m9XxwTQEYajMQ2U%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686580500371 - server replied: Not Found 14: QWARN : ActionsTest::testInvite() quotient.jobs: 404 <- PUT https://localhost:1234/_matrix/client/v3/rooms/%219ew%00mQghtuJ0m9XxwTQEYajMQ2U%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686580500372 14: QWARN : ActionsTest::testInvite() quotient.jobs: "SendMessageJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%219ew%00mQghtuJ0m9XxwTQEYajMQ2U%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686580500372 - server replied: Not Found 14: QWARN : ActionsTest::testInvite() quotient.jobs: 404 <- PUT https://localhost:1234/_matrix/client/v3/rooms/%219ew%00mQghtuJ0m9XxwTQEYajMQ2U%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686580500373 14: QWARN : ActionsTest::testInvite() quotient.jobs: "SendMessageJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%219ew%00mQghtuJ0m9XxwTQEYajMQ2U%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686580500373 - server replied: Not Found 14: QWARN : ActionsTest::testInvite() quotient.jobs: 404 <- PUT https://localhost:1234/_matrix/client/v3/rooms/%219ew%00mQghtuJ0m9XxwTQEYajMQ2U%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686580500374 14: QWARN : ActionsTest::testInvite() quotient.jobs: "SendMessageJob" status NotFound: Error transferring https://localhost:1234/_matrix/client/v3/rooms/%219ew%00mQghtuJ0m9XxwTQEYajMQ2U%3D%3Alocalhost%3A1234/send/m.room.message/device_123417686580500374 - server replied: Not Found 14: QWARN : ActionsTest::testInvite() QJsonObject({"next_batch":"6","rooms":{"join":{"!9ew\u0000mQghtuJ0m9XxwTQEYajMQ2U=:localhost:1234":{"state":{"events":[{"content":{"displayname":"User","membership":"invite"},"event_id":"$qTtevUZ4AhwDMiKOm/bLZg2JBwI=","origin_server_ts":1768658050075,"room_id":"!9ew\u0000mQghtuJ0m9XxwTQEYajMQ2U=:localhost:1234","sender":"@user:localhost:1234","state_key":"@foo:example.com","type":"m.room.member","unsigned":{"age":1234}},{"content":{"displayname":"User","membership":"invite"},"event_id":"$pDY3a+EDk5+7/m44gADcVwUs42o=","origin_server_ts":1768658050075,"room_id":"!9ew\u0000mQghtuJ0m9XxwTQEYajMQ2U=:localhost:1234","sender":"@user:localhost:1234","state_key":"@user:example.com","type":"m.room.member","unsigned":{"age":1234}}]}}}}}) 14: PASS : ActionsTest::testInvite() 14: PASS : ActionsTest::cleanupTestCase() 14: Totals: 15 passed, 0 failed, 0 skipped, 0 blacklisted, 43ms 14: ********* Finished testing of ActionsTest ********* 14/16 Test #14: actionstest ...................... Passed 0.28 sec 15/16 Test #15: servernoticestest ................Subprocess aborted***Exception: 0.64 sec ********* Start testing of ServerNoticesTest ********* Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown QFATAL : ServerNoticesTest::initTestCase() Server failed to listen on a port. FAIL! : ServerNoticesTest::initTestCase() Received a fatal error. Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 2ms ********* Finished testing of ServerNoticesTest ********* Received signal 6 (SIGABRT) initTestCase function time: 1ms, total time: 2ms 16/16 Test #16: roommanagertest ..................Subprocess aborted***Exception: 0.60 sec ********* Start testing of RoomManagerTest ********* Config: Using QtTest library 6.9.2, Qt 6.9.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown QFATAL : RoomManagerTest::initTestCase() Server failed to listen on a port. FAIL! : RoomManagerTest::initTestCase() Received a fatal error. Totals: 0 passed, 1 failed, 0 skipped, 0 blacklisted, 1ms ********* Finished testing of RoomManagerTest ********* Received signal 6 (SIGABRT) initTestCase function time: 1ms, total time: 1ms 88% tests passed, 2 tests failed out of 16 Total Test time (real) = 0.84 sec The following tests FAILED: 15 - servernoticestest (Subprocess aborted) 16 - roommanagertest (Subprocess aborted) Errors while running CTest Noechat is being compiled on Debian sid chroot via sbuild. Could you please hint about what I could be missing? Is there a new-enough Qt version needed? Any other requirements for such tests to run reliably?