mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From 908c89a6484dfb29e5c77672f03ec3369ba22993 Mon Sep 17 00:00:00 2001
|
|
From: Even Rouault <even.rouault@spatialys.com>
|
|
Date: Mon, 9 Sep 2024 11:26:41 +0200
|
|
Subject: [PATCH] unit-io-WKBWriter: fix test failures on big-endian (s390x)
|
|
|
|
Fixes #1159
|
|
---
|
|
tests/unit/io/WKBWriterTest.cpp | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
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 );
|