pespin has submitted this change. (
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(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
jolly: Looks good to me, but someone else must approve
fixeria: Looks good to me, but someone else must approve
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: */
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41299?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id910bfb4e0965700e2d378a513a9bf889b929d44
Gerrit-Change-Number: 41299
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: jolly <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>