Mercurial > hg > orthanc
diff UnitTestsSources/ImageTests.cpp @ 3181:6fd38327e777
Fix issue #130 (Orthanc failed to start when /tmp partition was full)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 31 Jan 2019 15:33:27 +0100 |
parents | 4e43e67f8ecf |
children | 94f4a18a79cc |
line wrap: on
line diff
--- a/UnitTestsSources/ImageTests.cpp Wed Jan 30 17:50:51 2019 +0100 +++ b/UnitTestsSources/ImageTests.cpp Thu Jan 31 15:33:27 2019 +0100 @@ -185,7 +185,7 @@ { Orthanc::TemporaryFile tmp; - Orthanc::SystemToolbox::WriteFile(s, tmp.GetPath()); + tmp.Write(s); Orthanc::PngReader r2; r2.ReadFromFile(tmp.GetPath()); @@ -411,7 +411,7 @@ { Orthanc::TemporaryFile tmp; - Orthanc::SystemToolbox::WriteFile(s, tmp.GetPath()); + tmp.Write(s); Orthanc::PamReader r2; r2.ReadFromFile(tmp.GetPath()); @@ -433,4 +433,3 @@ } } } -