diff options
author | Colm Donelan <colm.donelan@arm.com> | 2023-02-10 15:19:46 +0000 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2023-02-10 15:19:46 +0000 |
commit | b5ea589e568d3f56bd868d57c850680f999f83fc (patch) | |
tree | 0e9eac9867fc3804c08d5f1b3afacee86e22af3d /include/armnnUtils | |
parent | aa4f5833bea14bd92b4429c4659d205a81167486 (diff) | |
download | armnn-b5ea589e568d3f56bd868d57c850680f999f83fc.tar.gz |
IVGCVSW-7510 Delete temporary files created by DebugTestImpl.
* The test cases that use DebugTestImpl were creating temporary files
but not cleaning them up after running.
* Refactored FileSystem to extract a common RemoveDirectoryAndContents
function.
Signed-off-by: Colm Donelan <colm.donelan@arm.com>
Change-Id: I35b8d2eeed286742358a9abccbc078493d033902
Diffstat (limited to 'include/armnnUtils')
-rw-r--r-- | include/armnnUtils/Filesystem.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/armnnUtils/Filesystem.hpp b/include/armnnUtils/Filesystem.hpp index 0b97af4323..5d547016be 100644 --- a/include/armnnUtils/Filesystem.hpp +++ b/include/armnnUtils/Filesystem.hpp @@ -29,7 +29,9 @@ fs::path NamedTempFile(const char* fileName); /// Returns full path to temporary folder std::string CreateDirectory(std::string sPath); -FileContents ReadFileContentsIntoString(const std::string path); +FileContents ReadFileContentsIntoString(const std::string& path); + +void RemoveDirectoryAndContents(const std::string& path); } // namespace armnnUtils } // namespace Filesystem |