diff options
author | Maxim Pimenov <m@maps.me> | 2017-11-17 16:01:54 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-11-17 17:34:25 +0300 |
commit | 50653171ff545219eae083cffa5106baeeea325d (patch) | |
tree | c382b7c754a88e54d6243752412c76d5d9a59e5a /openlr/openlr_tests/decoded_path_test.cpp | |
parent | e03e986c71969db0d3d5b625224368715252c6e8 (diff) |
[platform] [tests] Added an option to ScopedFile.
The option allows one to push responsibility on the user
of the ScopedFile, that is, enables a scenario where
a ScopedFile does not try to create the file on disk
but only assures the cleanup.
Diffstat (limited to 'openlr/openlr_tests/decoded_path_test.cpp')
-rw-r--r-- | openlr/openlr_tests/decoded_path_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openlr/openlr_tests/decoded_path_test.cpp b/openlr/openlr_tests/decoded_path_test.cpp index 1139c3b178..bfb716d687 100644 --- a/openlr/openlr_tests/decoded_path_test.cpp +++ b/openlr/openlr_tests/decoded_path_test.cpp @@ -121,7 +121,8 @@ void WithRoad(vector<m2::PointD> const & points, Func && fn) LocalCountryFile country(mwmPath, CountryFile(kTestMwm), 0 /* version */); ScopedDir testScopedDir(kTestDir); - ScopedFile testScopedMwm(my::JoinPath(kTestDir, kTestMwm + DATA_FILE_EXTENSION)); + ScopedFile testScopedMwm(my::JoinPath(kTestDir, kTestMwm + DATA_FILE_EXTENSION), + ScopedFile::Mode::Create); { TestMwmBuilder builder(country, feature::DataHeader::country); |