Skip to content

Commit

Permalink
(vmware#554) Fixes to get couple of tests running cleanly in ASAN-builds
Browse files Browse the repository at this point in the history
This commit fixes minor errors in 2 tests (io_apis_test, filter_test)
to get them running cleanly in ASAN-builds.
  • Loading branch information
gapisback committed Mar 22, 2023
1 parent ea7203a commit 9037ebe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/functional/filter_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ filter_test(int argc, char *argv[])
clockcache_deinit(cc);
platform_free(hid, cc);
rc_allocator_deinit(&al);
task_system_destroy(hid, &ts);
io_handle_deinit(io);
free_iohandle:
platform_free(hid, io);
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/io_apis_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ splinter_io_apis_test(int argc, char *argv[])

test_async_reads_by_threads(&io_test_fn_arg, NUM_THREADS);

task_system_destroy(hid, &tasks);
io_free:
io_handle_deinit(io_hdl);
platform_free(hid, io_hdl);
heap_destroy:
platform_heap_destroy(&hh);
Expand Down

0 comments on commit 9037ebe

Please sign in to comment.