Skip to content

Commit

Permalink
unit-io-WKBWriter: fix test failures on big-endian (s390x) (#1160)
Browse files Browse the repository at this point in the history
Fixes #1159
  • Loading branch information
rouault committed Sep 11, 2024
1 parent 0e5fd9c commit 53b111b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/io/WKBWriterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand All @@ -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 );
Expand Down

0 comments on commit 53b111b

Please sign in to comment.