-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 3ef6d06 as part of this patch, since we no longer require the workaround that it implemented. Fixes issue spdk#1357. Signed-off-by: Jim Harris <[email protected]> Change-Id: I1ee4c424ad31fe7d91d7b524ed47aedd279e5b5c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1948 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <[email protected]> Reviewed-by: Ben Walker <[email protected]> Reviewed-by: Tomasz Zawadzki <[email protected]>
- Loading branch information
1 parent
c4868f3
commit cfb65ba
Showing
5 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters