[osmium] 01/06: Imported Upstream version 0.0~20160124-b30afd3
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sun Jan 24 17:14:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository osmium.
commit 78faa274d2cb83c2d57a2ac357c778cdcb0c7bf0
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun Jan 24 17:30:57 2016 +0100
Imported Upstream version 0.0~20160124-b30afd3
---
test/t/osmfile/test_read_and_write.cpp | 16 ++++++++--------
test/temp_file_fixture.hpp | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/test/t/osmfile/test_read_and_write.cpp b/test/t/osmfile/test_read_and_write.cpp
index dac4e1a..9232fc4 100644
--- a/test/t/osmfile/test_read_and_write.cpp
+++ b/test/t/osmfile/test_read_and_write.cpp
@@ -52,7 +52,7 @@ void compare_file_content(std::istream* inputfile, std::string& expected_content
BOOST_AUTO_TEST_CASE(write_to_xml_output_file) {
TempFileFixture test_osm("test.osm");
- Osmium::OSMFile file(test_osm);
+ Osmium::OSMFile file(test_osm.to_string());
BOOST_REQUIRE_EQUAL(file.fd(), -1);
file.open_for_output();
@@ -74,7 +74,7 @@ BOOST_AUTO_TEST_CASE(write_to_xml_output_file) {
BOOST_AUTO_TEST_CASE(write_to_xml_gz_output_file) {
TempFileFixture test_osm_gz("test.osm.gz");
- Osmium::OSMFile file(test_osm_gz);
+ Osmium::OSMFile file(test_osm_gz.to_string());
file.open_for_output();
write(file.fd(), example_file_content.c_str(), example_file_content.size());
file.close();
@@ -94,7 +94,7 @@ BOOST_AUTO_TEST_CASE(write_to_xml_gz_output_file) {
BOOST_AUTO_TEST_CASE(write_to_xml_bz2_output_file) {
TempFileFixture test_osm_bz2("test.osm.bz2");
- Osmium::OSMFile file(test_osm_bz2);
+ Osmium::OSMFile file(test_osm_bz2.to_string());
file.open_for_output();
write(file.fd(), example_file_content.c_str(), example_file_content.size());
file.close();
@@ -132,7 +132,7 @@ BOOST_AUTO_TEST_CASE(read_from_xml_file) {
outputfile << example_file_content;
outputfile.close();
- Osmium::OSMFile file(test_osm);
+ Osmium::OSMFile file(test_osm.to_string());
file.open_for_input();
read_from_fd_and_compare(file.fd(), example_file_content);
@@ -154,7 +154,7 @@ BOOST_AUTO_TEST_CASE(read_from_xml_gz_file) {
out << example_file_content;
boost::iostreams::close(out);
- Osmium::OSMFile file(test_osm_gz);
+ Osmium::OSMFile file(test_osm_gz.to_string());
file.open_for_input();
read_from_fd_and_compare(file.fd(), example_file_content);
file.close();
@@ -174,7 +174,7 @@ BOOST_AUTO_TEST_CASE(read_from_xml_bz2_file) {
out << example_file_content;
boost::iostreams::close(out);
- Osmium::OSMFile file(test_osm_bz2);
+ Osmium::OSMFile file(test_osm_bz2.to_string());
file.open_for_input();
read_from_fd_and_compare(file.fd(), example_file_content);
file.close();
@@ -218,7 +218,7 @@ BOOST_AUTO_TEST_CASE(OSMFile_writingToReadonlyDirectory_shouldRaiseIOException)
BOOST_AUTO_TEST_CASE(OSMFile_readingNonexistingFile_shouldRaiseException) {
TempFileFixture nonexisting_osm("nonexisting.osm");
- Osmium::OSMFile file(nonexisting_osm);
+ Osmium::OSMFile file(nonexisting_osm.to_string());
try {
file.open_for_input();
@@ -233,7 +233,7 @@ BOOST_AUTO_TEST_CASE(OSMFile_readingNonexistingFile_shouldRaiseException) {
BOOST_AUTO_TEST_CASE(OSMFile_readingNonexistingFileWithGzip_shouldRaiseIOException) {
DISABLE_SIGCHLD();
TempFileFixture nonexisting_osm_gz("nonexisting.osm.gz");
- Osmium::OSMFile file(nonexisting_osm_gz);
+ Osmium::OSMFile file(nonexisting_osm_gz.to_string());
file.open_for_input();
try {
diff --git a/test/temp_file_fixture.hpp b/test/temp_file_fixture.hpp
index 01b079b..699254a 100644
--- a/test/temp_file_fixture.hpp
+++ b/test/temp_file_fixture.hpp
@@ -59,7 +59,7 @@ struct TempFileFixture {
return path.c_str();
}
- operator const std::string&() const {
+ const std::string& to_string() const {
return path.native();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmium.git
More information about the Pkg-grass-devel
mailing list