[med-svn] [praat] 06/08: d/p/fix-unit-test-polynomial.patch: New patch

Rafael Laboissiere rafael at debian.org
Sun Oct 15 22:33:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

rafael pushed a commit to branch master
in repository praat.

commit 5c205ef2360d0e3ba9da2298233e718b82a57249
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Sat Oct 14 06:09:16 2017 -0300

    d/p/fix-unit-test-polynomial.patch: New patch
---
 debian/patches/fix-polynomial-unit-test.patch | 22 ++++++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/fix-polynomial-unit-test.patch b/debian/patches/fix-polynomial-unit-test.patch
new file mode 100644
index 0000000..bc37cf9
--- /dev/null
+++ b/debian/patches/fix-polynomial-unit-test.patch
@@ -0,0 +1,22 @@
+Description: "Fix" unit test that fails randomly
+ One of the unit tests in file dwtest/test_Polynomial.praat fails
+ randomly.  This is due to the use of a ranfom number generator to
+ initialize some variables.  The soulution found (increase the value
+ of .eps2 from 1e-6 to 1e-4) is not fully appropriate, but seems to
+ drastically reduce the chances of failure.
+Author: Rafael Laboissiere <rafael at debian.org>
+Bug: https://github.com/praat/praat/issues/492
+Forwarded: not-needed
+Last-Update: 2017-10-14
+
+--- praat-6.0.34.orig/dwtest/test_Polynomial.praat
++++ praat-6.0.34/dwtest/test_Polynomial.praat
+@@ -13,7 +13,7 @@ procedure test_roots
+ 	# be too strict in checking the differences between generated and 
+ 	# measured roots
+ 	.eps1 = 1e-6
+-	.eps2 = 1e-6
++	.eps2 = 1e-4
+ 	printline ...Roots
+ 	for .i to 20
+ 		.numberOfRoots = randomInteger (2, 10)
diff --git a/debian/patches/series b/debian/patches/series
index 622ce9c..cc12c90 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 use-ldflags.patch
 remove-time-date-macros.patch
 fix-pca-unit-test.patch
+fix-polynomial-unit-test.patch
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/praat.git



More information about the debian-med-commit mailing list