diff options
author | Marco Pagani <[email protected]> | 2024-07-25 14:50:29 +0200 |
---|---|---|
committer | Xu Yilun <[email protected]> | 2024-08-14 23:50:01 +0800 |
commit | dbcbd3650f305df708b569517c063c7644cf0d89 (patch) | |
tree | d2184a73ca646416356799c7de1a8725a5b5346b /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 8400291e289ee6b2bf9779ff1c83a291501f017b (diff) |
fpga: Simplify and improve fpga mgr test using deferred actions
Use deferred actions to simplify the test suite and avoid potential memory
leaks when test cases fail. Remove unnecessary calls to
kunit_device_unregister() since kunit devices are tied to the test context
and released by a deferred action when the test is completed.
Signed-off-by: Marco Pagani <[email protected]>
Acked-by: Xu Yilun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Xu Yilun <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions