Skip to content
Commit 9df168b5 authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Andrew Boie
Browse files

tests: lib: fdtable: Add tests for checking refcounting



Add tests that will make sure that refcounting works as expected.

Also fixed two tests that were using the object values before
the fdtable contained proper values. After reserving a fd by
z_reserve_fd(), we can only call z_finalize_fd() or z_free_fd(),
and only after those calls can fetch obj and vtable values.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 8b578bdc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment