[Pkg-octave-commit] [SCM] Debian packaging for octave-statistics branch, master, updated. upstream/1.1.0-21-g6f80f80

Sébastien Villemot sebastien.villemot at ens.fr
Wed Mar 14 20:30:06 UTC 2012


The following commit has been merged in the master branch:
commit ee5b4031aa391c8e1eb14297b601e3764b49e67c
Author: Sébastien Villemot <sebastien.villemot at ens.fr>
Date:   Wed Mar 14 21:23:32 2012 +0100

    debian/patches/linkage-clear-lastwarn.patch: new patch

diff --git a/debian/patches/linkage-clear-lastwarn.patch b/debian/patches/linkage-clear-lastwarn.patch
new file mode 100644
index 0000000..ba51a2d
--- /dev/null
+++ b/debian/patches/linkage-clear-lastwarn.patch
@@ -0,0 +1,21 @@
+Description: Clear last warning state in linkage test
+ This patch clears the state of the last warning before running warning-based
+ tests in the linkage function. This is necessary when we run the whole package
+ testsuite in a single shot: if a previous test emits a warning, the test in
+ linkage will fail. This may be the symptom of a bug in Octave, but I am not
+ totally sure.
+Author: Sébastien Villemot <sebastien.villemot at ens.fr>
+Forwarded: http://comments.gmane.org/gmane.comp.gnu.octave.devel/6964
+Last-Update: 2012-03-14
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/inst/linkage.m
++++ b/inst/linkage.m
+@@ -217,6 +217,7 @@
+ %!assert (cond (linkage (pdist (x), "complete")),  21.793345,t);
+ %!assert (cond (linkage (pdist (x), "average")),   27.045012,t);
+ %!assert (cond (linkage (pdist (x), "weighted")),  27.412889,t);
++%!test lastwarn() % Clear last warning
+ %!warning <monotonically> linkage (pdist (x), "centroid");
+ %!test warning off clustering
+ %! assert (cond (linkage (pdist (x), "centroid")), 27.457477,t);
diff --git a/debian/patches/series b/debian/patches/series
index 40d5445..20d214c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ data-files-for-tests.diff
 normalise_distribution-index-scalar.patch
 remove-zscore.patch
 combnk-cells.patch
+linkage-clear-lastwarn.patch

-- 
Debian packaging for octave-statistics



More information about the Pkg-octave-commit mailing list