[geos-commits] [SCM] GEOS branch main updated. 53b111b010bffff6c4a58dc5db123941604c4273
git at osgeo.org
git at osgeo.org
Wed Sep 11 13:42:56 PDT 2024
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".
The branch, main has been updated
via 53b111b010bffff6c4a58dc5db123941604c4273 (commit)
from 0e5fd9c0d4ff843ad8ee18f52628544446855379 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 53b111b010bffff6c4a58dc5db123941604c4273
Author: Even Rouault <even.rouault at spatialys.com>
Date: Wed Sep 11 22:42:35 2024 +0200
unit-io-WKBWriter: fix test failures on big-endian (s390x) (#1160)
Fixes #1159
diff --git a/tests/unit/io/WKBWriterTest.cpp b/tests/unit/io/WKBWriterTest.cpp
index 04f5e82fc..21387fe6c 100644
--- a/tests/unit/io/WKBWriterTest.cpp
+++ b/tests/unit/io/WKBWriterTest.cpp
@@ -48,6 +48,7 @@ struct test_wkbwriter_data {
void checkHexOutput(const std::string& wkt, const std::string& hex) {
std::stringstream out;
auto geom = wktreader.read(wkt);
+ wkbwriter.setByteOrder(1); // little endian
wkbwriter.writeHEX(*geom, out);
ensure_equals(wkt, out.str(), hex );
}
@@ -56,6 +57,7 @@ struct test_wkbwriter_data {
std::stringstream out;
auto geom = wktreader.read(wkt);
geom->setSRID(srid);
+ wkbwriter.setByteOrder(1); // little endian
wkbwriter.setIncludeSRID(true);
wkbwriter.writeHEX(*geom, out);
ensure_equals(wkt, out.str(), hex );
-----------------------------------------------------------------------
Summary of changes:
tests/unit/io/WKBWriterTest.cpp | 2 ++
1 file changed, 2 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list