File: 0004-tests-Disable-time-dependent-Buffer.RateLimit2-test.patch

package info (click to toggle)
opencpn 1%3A5.10.2%2Bdfsg-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 164,168 kB
  • sloc: ansic: 515,707; cpp: 353,066; xml: 84,559; sh: 5,358; python: 1,833; makefile: 101; perl: 83; cs: 65; javascript: 65; ruby: 21
file content (25 lines) | stat: -rw-r--r-- 900 bytes parent folder | download | duplicates (2)
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
From: Alec Leamas <leamas.alec@gmail.com>
Date: Mon, 10 Jun 2024 11:44:32 +0200
Subject: tests: Disable time dependent Buffer.RateLimit2 test.

Bug: https://github.com/OpenCPN/OpenCPN/issues/4090
---
 test/buffer_tests.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/buffer_tests.cpp b/test/buffer_tests.cpp
index b324fcd..8192865 100644
--- a/test/buffer_tests.cpp
+++ b/test/buffer_tests.cpp
@@ -118,9 +118,9 @@ TEST(Buffer, RateLimit1) {
   EXPECT_EQ(queue.size(), 20);
 }
 
-#if !defined(__APPLE__) && !defined (_WIN32)
+#if !defined(__APPLE__) && !defined (_WIN32) && !defined(OCPN_DISTRO_BUILD)
 // The MacOS builders seems to have a lot of "too" long sleeps,
-// same for  GA windows. Disable for now.
+// same for  GA windows and Linux buildbots. Disable for now.
 TEST(Buffer, RateLimit2) {
   CommOutQueue queue(20, 20ms);
   for (int i = 0; i < 20; i++) {