aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon
diff options
context:
space:
mode:
authorColm Donelan <colm.donelan@arm.com>2023-02-10 15:19:46 +0000
committerColm Donelan <colm.donelan@arm.com>2023-02-10 15:19:46 +0000
commitb5ea589e568d3f56bd868d57c850680f999f83fc (patch)
tree0e9eac9867fc3804c08d5f1b3afacee86e22af3d /src/backends/backendsCommon
parentaa4f5833bea14bd92b4429c4659d205a81167486 (diff)
downloadarmnn-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.cpp3
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
{