Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [PATCH libgpiod 0/2] dbus: client: tests: fix racy gpiocli monitor tests
@ 2026-11-25  8:00 Khem Raj
  2026-11-25  8:00 ` [PATCH libgpiod 1/2] dbus: client: tests: wait for each event in test_monitor_all_lines_on_request Khem Raj
  2026-11-25  8:00 ` [PATCH libgpiod 2/2] dbus: client: tests: wait for each event in test_monitor_multiple_lines_by_name Khem Raj
  0 siblings, 2 replies; 3+ messages in thread
From: Khem Raj @ 2026-11-25  8:00 UTC (permalink / raw)
  To: linux-gpio; +Cc: Khem Raj, Bartosz Golaszewski

From: Khem Raj <khem.raj@oss.qualcomm.com>

test_monitor_all_lines_on_request and test_monitor_multiple_lines_by_name
toggle one line twice, with another line in between, before reading the
monitor output. gpio-sim can deliver both changes of the first line as
one interrupt, the rising edge is lost and the tests fail intermittently.
These two patches make the tests wait for each event before triggering
the next one.

Running gpiocli-test.bash in a qemux86-64 guest (kernel 7.2.15) whose
vCPUs were pinned to one host CPU and kept busy, it failed in 7 of 10
runs without these patches (both tests fail) and passed 10 of 10 runs
with them. Without the CPU contention both variants passed 30 of 30 runs.

Khem Raj (2):
  dbus: client: tests: wait for each event in
    test_monitor_all_lines_on_request
  dbus: client: tests: wait for each event in
    test_monitor_multiple_lines_by_name

 dbus/client/gpiocli-test.bash | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-25  8:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  8:00 [PATCH libgpiod 0/2] dbus: client: tests: fix racy gpiocli monitor tests Khem Raj
2026-11-25  8:00 ` [PATCH libgpiod 1/2] dbus: client: tests: wait for each event in test_monitor_all_lines_on_request Khem Raj
2026-11-25  8:00 ` [PATCH libgpiod 2/2] dbus: client: tests: wait for each event in test_monitor_multiple_lines_by_name Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox