diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2019-03-20 12:46:58 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2019-03-25 12:34:38 +0000 |
commit | 9fc8c0f0587d798b927ae4364e0b8a6db808c244 (patch) | |
tree | 0164d1ef056488afdbf11d94050fb9dfb0408be9 /src/armnnTfLiteParser/test | |
parent | ef38d5d0f071c53883e2b2f13c85bfb3df34bf88 (diff) | |
download | armnn-9fc8c0f0587d798b927ae4364e0b8a6db808c244.tar.gz |
Use unique names for temporary files
Change-Id: I06653135c5fef38a52995da6c4b6de7ba5786b6a
Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Diffstat (limited to 'src/armnnTfLiteParser/test')
-rw-r--r-- | src/armnnTfLiteParser/test/LoadModel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/armnnTfLiteParser/test/LoadModel.cpp b/src/armnnTfLiteParser/test/LoadModel.cpp index 2bb05ba15c..ea490106c4 100644 --- a/src/armnnTfLiteParser/test/LoadModel.cpp +++ b/src/armnnTfLiteParser/test/LoadModel.cpp @@ -198,7 +198,8 @@ BOOST_FIXTURE_TEST_CASE(LoadModelFromBinary, LoadModelFixture) BOOST_FIXTURE_TEST_CASE(LoadModelFromFile, LoadModelFixture) { - std::string fname = boost::filesystem::temp_directory_path().string() + "/testtflite.tflite"; + using namespace boost::filesystem; + std::string fname = unique_path(temp_directory_path() / "%%%%-%%%%-%%%%.tflite").string(); bool saved = flatbuffers::SaveFile(fname.c_str(), reinterpret_cast<char *>(m_GraphBinary.data()), m_GraphBinary.size(), true); @@ -213,7 +214,7 @@ BOOST_FIXTURE_TEST_CASE(LoadModelFromFile, LoadModelFixture) tflite::CustomOptionsFormat_FLEXBUFFERS); CheckOperator(model->subgraphs[1]->operators[0], 1, { 0, 2 }, { 1 }, tflite::BuiltinOptions_Conv2DOptions, tflite::CustomOptionsFormat_FLEXBUFFERS); - remove(fname.c_str()); + remove(fname); } BOOST_AUTO_TEST_CASE(LoadNullBinary) |