pespin has uploaded this change for review.

View Change

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: */

To view, visit change 41299. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id910bfb4e0965700e2d378a513a9bf889b929d44
Gerrit-Change-Number: 41299
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>