#1121423 libqofono-tests: various tests fail with phonesim

Package:
libqofono-tests
Source:
libqofono-tests
Description:
Qt library for Ofono (unit tests)
Submitter:
Andres Salomon
Date:
2026-04-26 07:57:01 UTC
Severity:
normal
#1121423#5
Date:
2025-11-26 08:55:03 UTC
From:
To:
While working on telepathy-ofono, I decided to make a quick test harness
framework utilizing ofono-phonesim to catch things that I was
potentially breaking (and writing it with an eye towards using it for
autopkgtests later on).

While doing this, I noticed some failing tests for libqofono. Since I'm
doing this inside a container without a gui, I'm skipping over the
interactive tests that require pushing buttons (for now). I've listed
some of the failing tests below, and attached the full log and script.

I'm filing this bug as minor because there could be issues with my
setup, and I'm actively digging further into the failures across the
stack. However, some of these look valid and might be worth digging
into; for example:

task-0: FAIL!  : TestQOfonoCallForwarding::testQOfonoCallForwarding()
Compared values are not the same
task-0:    Actual   (((voiceBusyChanged.count()))): 0
task-0:    Expected (1)                           : 1

The QTest code is setting VoiceUnconditional to a phone number, which
should (temporarily) disable all the other call forwarding stuff and
trigger various PropertyChanged signals (NotReachable, Busy, etc). I see
Ofono sending all the requisite signals (Busy set to "",
ForwardingFlagOnSim set to true, etc; and they arrive in that order
according to dbus-monitor). Yet for some reason, QOfono hasn't increased
voiceBusyChanged.count() to 1 while it HAS increased
forwardingFlagOnSimChanged.count() to 1. Could be a race, could be a bug
somewhere in QOfono, or it could be an invalid test somehow.

Test failure summary below:

TestQOfonoCallForwarding:
2 passed, 1 failed, 0 skipped, 0 blacklisted, 15833ms
--
TestQOfonoConnectionManagerContext:
2 passed, 1 failed, 0 skipped, 0 blacklisted, 15775ms
--
TestOfonoMultipartyCall:
1 passed, 1 failed, 0 skipped, 0 blacklisted, 4ms
--
TestQOfonoSimManager:
4 passed, 1 failed, 0 skipped, 0 blacklisted, 363ms
--
Tst_qofonoTest:
task-0: Totals: 2 passed, 2 failed, 0 skipped, 0 blacklisted, 7ms

#1121423#10
Date:
2026-04-26 07:54:26 UTC
From:
To:
[...]
https://lore.kernel.org/ofono/20260425171944.18590822@5400/T/#u

Calling a non-existent property "Preferred" in
org.ofono.ConnectionContext. This was added in
debian/patches/1001_context-preferred.patch, from Canonical back in
2015; I'm not sure why it's there. Maybe related to ofono patches that
they're carrying?

With the Preferred stuff commented out, the tests pass.



This just seems wholly incomplete and broken. Ignoring this test.