aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Ružička <jakub.ruzicka@nic.cz>2022-06-28 17:32:34 +0200
committerJakub Ružička <jakub.ruzicka@nic.cz>2022-06-28 17:35:52 +0200
commit0fc1debc6d8c4c524ac3e644f345da4a27524c9e (patch)
tree54429acbf3a111c170cf6fb0e68dda9ebd4864a8
parent7ddd7407cfa4c5642b9d86da6f1eb803a8f13b3f (diff)
downloadbird-0fc1debc6d8c4c524ac3e644f345da4a27524c9e.tar.gz
d/patches: add patch to increase tests timeout
-rw-r--r--debian/patches/0001-increase-tests-timeout.patch26
-rw-r--r--debian/patches/series1
2 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/0001-increase-tests-timeout.patch b/debian/patches/0001-increase-tests-timeout.patch
new file mode 100644
index 00000000..93d2091d
--- /dev/null
+++ b/debian/patches/0001-increase-tests-timeout.patch
@@ -0,0 +1,26 @@
+From 007bb2c4503baa194c0dfc4b88bd283e04b2b163 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jakub=20Ru=C5=BEi=C4=8Dka?= <jakub.ruzicka@nic.cz>
+Date: Tue, 28 Jun 2022 16:32:46 +0200
+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.36.1
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 00000000..acd48ad4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-increase-tests-timeout.patch