Mercurial > hg > orthanc
diff OrthancFramework/UnitTestsSources/FrameworkTests.cpp @ 4186:e99d1ad11cfe
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 14 Sep 2020 19:27:55 +0200 |
parents | bf7b9edf6b81 |
children | a38376b80cd1 |
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/FrameworkTests.cpp Mon Sep 14 18:09:30 2020 +0200 +++ b/OrthancFramework/UnitTestsSources/FrameworkTests.cpp Mon Sep 14 19:27:55 2020 +0200 @@ -603,6 +603,15 @@ std::string u; ASSERT_THROW(SystemToolbox::ReadFile(u, path.c_str()), OrthancException); + + { + TemporaryFile tmp; + std::string s = "Hello"; + SystemToolbox::WriteFile(s, tmp.GetPath(), true /* call fsync() */); + std::string t; + SystemToolbox::ReadFile(t, tmp.GetPath()); + ASSERT_EQ(s, t); + } }