Skip to content
Success

Changes

Summary

  1. tests/osmo_io: Rework test_file() (details)
Commit 02cf907172a0fc647768952b319900235b01a6b7 by Pau Espin Pedrol
tests/osmo_io: Rework test_file()

The amount of read and write on each callback is actually not
really managed by us but by the kernel. Instead of validating the amount
of read/write callbacks, monitor the amount of read/write bytes (and
also make sure the received a final read with len=0 to signal EOF).

Add fflush(stdout) before calling ASSERT to make sure stdout is flushed
before terminating the program.

Related: SYS#6708
Change-Id: Ie1e686b407532eee76a8692dfc632af73183e614
The file was modifiedtests/osmo_io/osmo_io_test.c