File: 0006-tests-disable-file-driver-tests-on-distro-builders.patch

package info (click to toggle)
opencpn 1%3A5.12.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 166,736 kB
  • sloc: ansic: 521,943; cpp: 368,070; xml: 84,150; sh: 5,419; python: 1,833; makefile: 103; perl: 83; javascript: 65; cs: 65; ruby: 21
file content (34 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Alec Leamas <leamas.alec@gmail.com>
Date: Mon, 11 Aug 2025 15:00:31 +0200
Subject: tests: disable file driver tests on distro builders

The file driver tests fails for unknown reasons on some esoteric
Debian platforms like IBM/S390 and mips. Possibly little endian
problems. We are not particularly interested in the file driver
on these platforms, so just disable them in distro builds

Forwarded: not-needed
---
 test/tests.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/tests.cpp b/test/tests.cpp
index b575ec6..086b914 100644
--- a/test/tests.cpp
+++ b/test/tests.cpp
@@ -964,6 +964,7 @@ TEST(Navmsg2000, to_string) {
   EXPECT_EQ(string("n2000-    PGN: 6385516 [  ]"), msg->to_string());
 }
 
+#ifndef OCPN_DISTRO_BUILD
 TEST(FileDriver, Registration) {
   wxLog::SetActiveTarget(&defaultLog);
   auto driver = std::make_unique<FileCommDriver>("test-output.txt");
@@ -990,6 +991,7 @@ TEST(FileDriver, output) {
   ss << f.rdbuf();
   EXPECT_EQ(ss.str(), string("n2000-    PGN: 6385516 [  ]"));
 }
+#endif //  OCPN_DISTRO_BUILD
 
 #if 0
 // FIXME (comm_drv_file, see FIXME there)