File: 0001-Increase-tests-timeout.patch

package info (click to toggle)
bird2 2.0.12-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,696 kB
  • sloc: ansic: 67,584; perl: 3,431; sh: 3,341; lex: 887; xml: 494; makefile: 403; python: 123; sed: 13
file content (26 lines) | stat: -rw-r--r-- 894 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
From c851aa3c9c7060ccc0085a3cdd1975b1a68454f4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Ru=C5=BEi=C4=8Dka?= <jakub.ruzicka@nic.cz>
Date: Tue, 24 Jan 2023 12:54:15 +0100
Subject: [PATCH] Increase tests timeout

Tests may take longer than 5 s to complete on slow/virtual machines.
---
 test/birdtest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/birdtest.h b/test/birdtest.h
index ad5f8f9..cfeebb9 100644
--- a/test/birdtest.h
+++ b/test/birdtest.h
@@ -40,7 +40,7 @@ static inline u64 bt_random(void)
 void bt_log_suite_result(int result, const char *fmt, ...);
 void bt_log_suite_case_result(int result, const char *fmt, ...);
 
-#define BT_TIMEOUT 			5	/* Default timeout in seconds */
+#define BT_TIMEOUT 			60	/* Default timeout in seconds */
 #define BT_FORKING 			1	/* Forking is enabled in default */
 
 #define BT_RANDOM_SEED 			0x5097d2bb
-- 
2.30.2