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 /src/backends/backendsCommon | |
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 'src/backends/backendsCommon')
-rw-r--r-- | src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp b/src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp index 2ec94bca58..1768f5c503 100644 --- a/src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp +++ b/src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp @@ -79,6 +79,9 @@ LayerTestResult<T, Dim> DebugTestImpl( armnnUtils::Filesystem::FileContents output = armnnUtils::Filesystem::ReadFileContentsIntoString(full_path); CHECK((output == expectedStringOutput)); + + // Clean up afterwards. + armnnUtils::Filesystem::RemoveDirectoryAndContents(tmpDir); } else { |