From b5ea589e568d3f56bd868d57c850680f999f83fc Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Fri, 10 Feb 2023 15:19:46 +0000 Subject: 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 Change-Id: I35b8d2eeed286742358a9abccbc078493d033902 --- src/backends/backendsCommon/test/layerTests/DebugTestImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/backends/backendsCommon/test/layerTests') 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 DebugTestImpl( armnnUtils::Filesystem::FileContents output = armnnUtils::Filesystem::ReadFileContentsIntoString(full_path); CHECK((output == expectedStringOutput)); + + // Clean up afterwards. + armnnUtils::Filesystem::RemoveDirectoryAndContents(tmpDir); } else { -- cgit v1.2.1