Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4c1ecb8e authored by Steven Cahail's avatar Steven Cahail
Browse files

tty: n_smux: Fix unit test rx retry count race condition



In the smux local loopback unit tests, the get_rx_buff_retry_auto
test fails due to a retry counter being tested prior to waiting
for an smux write completion. This causes the event to be detected
in the next loop, which causes the rx retry watermark to be greater
than the maximum retry, which causes a false unit test failure.

Move counter increment to after the smux write completion.

Change-Id: Iee5d296b4dc38eae5ceb4eb45343b10f00ce37fa
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent 792ce78d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment