summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorVincent Blut <vincent.debian@free.fr>2018-09-10 18:31:22 +0200
committerVincent Blut <vincent.debian@free.fr>2018-09-10 18:31:22 +0200
commit92142561cdba80165597c342656103c493946e01 (patch)
tree675ff012e6d9784d96f1009714f0c4873973d105 /debian
parent3663c827ac202abb44a68269f1a12ce8d82d466d (diff)
d/patches/*: Fix samplefilt unit test to work with low-precision clocks
This should fix FTBFS on HPPA and Alpha.
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/fix-samplefilt-unit-test-to-work-with-low-precision-clock.patch29
-rw-r--r--debian/patches/series1
2 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/fix-samplefilt-unit-test-to-work-with-low-precision-clock.patch b/debian/patches/fix-samplefilt-unit-test-to-work-with-low-precision-clock.patch
new file mode 100644
index 0000000..d9e9f80
--- /dev/null
+++ b/debian/patches/fix-samplefilt-unit-test-to-work-with-low-precision-clock.patch
@@ -0,0 +1,29 @@
+From bcedacaa3d9e51d5c1dfb1d4614fb4ced6516382 Mon Sep 17 00:00:00 2001
+From: Miroslav Lichvar <mlichvar@redhat.com>
+Date: Mon, 10 Sep 2018 14:51:30 +0200
+Subject: test: fix samplefilt unit test to work with low-precision clock
+
+Origin: upstream, https://git.tuxfamily.org/chrony/chrony.git/commit/?id=bcedacaa3d9e51d5c1dfb1d4614fb4ced6516382
+Bug: https://listengine.tuxfamily.org/chrony.tuxfamily.org/chrony-dev/2018/09/msg00000.html
+Last-Update: 2018-09-10
+---
+ test/unit/samplefilt.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+--- a/test/unit/samplefilt.c
++++ b/test/unit/samplefilt.c
+@@ -18,9 +18,13 @@
+ **********************************************************************
+ */
+
+-#include <samplefilt.c>
++#include <local.h>
+ #include "test.h"
+
++#define LCL_GetSysPrecisionAsQuantum() (1.0e-6)
++
++#include <samplefilt.c>
++
+ void
+ test_unit(void)
+ {
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..a4cdf9d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-samplefilt-unit-test-to-work-with-low-precision-clock.patch