dev-gap/guava: add Sort() calls to tests to fix random failures

Sent upstream, maybe there is a better fix but this will at least
prevent the test suite from failing.

Closes: https://bugs.gentoo.org/951553
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2025-04-18 20:04:50 -04:00
parent 56873044c0
commit 0fcb43dc8b
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
https://github.com/gap-packages/guava/issues/110
diff --git a/tst/guava.tst b/tst/guava.tst
index c6b356b..fc70f65 100644
--- a/tst/guava.tst
+++ b/tst/guava.tst
@@ -100,11 +100,14 @@ gap> Print(" Codes\n");
gap> C:=RandomLinearCode(20,10,GF(4));
a [20,10,?] randomly generated code over GF(4)
gap> c:=Random(C);;
-gap> NamesOfComponents(C);
-[ "Representative", "ZeroImmutable", "name", "LeftActingDomain", "Dimension",
- "GeneratorsOfLeftOperatorAdditiveGroup", "Basis", "NiceFreeLeftModule",
- "WordLength", "GeneratorMat" ]
-gap> NamesOfComponents(c);
+gap> nC:=NamesOfComponents(C);;
+gap> Sort(nC); nC;
+[ "Basis", "Dimension", "GeneratorMat",
+ "GeneratorsOfLeftOperatorAdditiveGroup", "LeftActingDomain",
+ "NiceFreeLeftModule", "Representative", "WordLength", "ZeroImmutable",
+ "name" ]
+gap> nc:=NamesOfComponents(c);;
+gap> Sort(nc); nc;
[ "VectorCodeword", "WordLength", "treatAsPoly" ]
gap> c!.VectorCodeword;
< immutable compressed vector length 20 over GF(4) >

View File

@@ -15,6 +15,7 @@ DEPEND="sci-mathematics/gap"
PATCHES=(
"${FILESDIR}/${PN}-3.15-makefile.patch"
"${FILESDIR}/${P}-testfix.patch"
)
GAP_PKG_EXTRA_INSTALL=( tbl )