+1
−1
+0
−5
+10
−0
+21
−0
Loading
reduce library uses unlink, but the unit tests need to override it in a specific way. But linking unit tests with LTO requires the wrapper definitions be in objects/libraries listed *after* the object/library that refers to it. So we need to make the unlink wrapper somewhat generic. We do this by exporting a string and callback function that the user can set to enable a user-defined function to be called when unlink() is called with a specific file name. Also revert 3ef6d061 as part of this patch, since we no longer require the workaround that it implemented. Fixes issue #1357. Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: I1ee4c424ad31fe7d91d7b524ed47aedd279e5b5c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1948 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>