aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/test/FileOnlyProfilingDecoratorTests.cpp')
-rw-r--r--src/profiling/test/FileOnlyProfilingDecoratorTests.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
index 26634704ae..4112dbac03 100644
--- a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
+++ b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp
@@ -7,6 +7,7 @@
#include <ProfilingService.hpp>
#include <Runtime.hpp>
+#include <Filesystem.hpp>
#include <boost/core/ignore_unused.hpp>
#include <boost/filesystem.hpp>
@@ -94,12 +95,10 @@ BOOST_AUTO_TEST_CASE(DumpOutgoingValidFileEndToEnd)
profilingService.ResetExternalProfilingOptions(options, true);
// The output file size should be greater than 0.
- struct stat statusBuffer;
- BOOST_CHECK(stat(tempPath.c_str(), &statusBuffer) == 0);
- BOOST_CHECK(statusBuffer.st_size > 0);
+ BOOST_CHECK(armnnUtils::Filesystem::GetFileSize(tempPath.string().c_str()) > 0);
// Delete the tmp file.
- BOOST_CHECK(remove(tempPath.c_str()) == 0);
+ BOOST_CHECK(armnnUtils::Filesystem::Remove(tempPath.string().c_str()));
}
BOOST_AUTO_TEST_SUITE_END()