pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/41299?usp=email )
Change subject: tests/osmo_io_test: test_segmentation: Use osmo_iofd_close() API ......................................................................
tests/osmo_io_test: test_segmentation: Use osmo_iofd_close() API
This is saner than doing osmo_iofd_unregister() + manual close().
Change-Id: Id910bfb4e0965700e2d378a513a9bf889b929d44 --- M tests/osmo_io/osmo_io_test.c 1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/99/41299/1
diff --git a/tests/osmo_io/osmo_io_test.c b/tests/osmo_io/osmo_io_test.c index d3e22aa..693c428 100644 --- a/tests/osmo_io/osmo_io_test.c +++ b/tests/osmo_io/osmo_io_test.c @@ -323,8 +323,7 @@ fflush(stdout); OSMO_ASSERT(file_bytes_write_compl == 12);
- osmo_iofd_unregister(iofd); - close(fd[1]); + osmo_iofd_close(iofd);
/* Now, re-configure iofd to only read from the pipe. * Reduce the read buffer size, to verify correct segmentation operation: */