[med-svn] [praat] 01/02: d/p/fix-gsl-unit-test.patch: New patch

Rafael Laboissiere rafael at debian.org
Wed Oct 25 07:30:45 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 f52563878529b66daa2376671a0db4e985199965
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Tue Oct 24 20:17:46 2017 -0200

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

diff --git a/debian/patches/fix-gsl-unit-test.patch b/debian/patches/fix-gsl-unit-test.patch
new file mode 100644
index 0000000..efaca31
--- /dev/null
+++ b/debian/patches/fix-gsl-unit-test.patch
@@ -0,0 +1,30 @@
+Description: Fix unit test in script dwtest/test_gsl.praat
+ This is simply done by increasing the tolerance in the test of
+ function incompleteGammaP by 4 orders of magnitude.
+Author: Rafael Laboissiere <rafael at debian.org>
+Forwarded: https://github.com/praat/praat/issues/505
+Last-Update: 2017-10-24
+
+--- praat-6.0.35.orig/dwtest/test_gsl.praat
++++ praat-6.0.35/dwtest/test_gsl.praat
+@@ -194,17 +194,17 @@ procedure test_incompleteGammaP
+ 	emax = round(19*ln(10))
+ 	for .i to 100
+ 		.x = randomUniform (0, emax)
+-		call func_2args incompleteGammaP 1 .x 1-exp(-.x) tol1
++		call func_2args incompleteGammaP 1 .x 1-exp(-.x) tol1*1e4
+ 	endfor
+ 	printline		incompleteGammaP(2,x)=(1-(1+x)*exp(-x))/2
+ 	for .i to 100
+ 		.x = randomUniform (0, emax)
+-		call func_2args incompleteGammaP 2 .x 1-(1+.x)*exp(-.x) tol3
++		call func_2args incompleteGammaP 2 .x 1-(1+.x)*exp(-.x) tol3*1e4
+ 	endfor
+ 	printline		incompleteGammaP(3,x)=(1-(1+x+0.5*x^2)*exp(-x))/2
+ 	for .i to 100
+ 		.x = randomUniform (0, emax)
+-		call func_2args incompleteGammaP 3 .x 1-(1+.x+0.5*.x^2)*exp(-.x) 2*tol4
++		call func_2args incompleteGammaP 3 .x 1-(1+.x+0.5*.x^2)*exp(-.x) 2*tol4*1e4
+ 	endfor
+ 	printline test_incompleteGammaP: succes
+ endproc
diff --git a/debian/patches/series b/debian/patches/series
index 6218522..dbb5fad 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ remove-time-date-macros.patch
 fix-pca-unit-test.patch
 fix-polynomial-unit-test.patch
 fix-procrustes-unit-test.patch
+fix-gsl-unit-test.patch

-- 
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