From 73efed650da577848f5a9b33ff9703148986725a Mon Sep 17 00:00:00 2001
From: Miroslav Šulc <fordfrog@gentoo.org>
Date: Sat, 3 Aug 2024 10:11:42 +0200
Subject: dev-java/owasp-java-encoder: updated explanation for skipped tests
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
---
 dev-java/owasp-java-encoder/owasp-java-encoder-1.3.0.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'dev-java/owasp-java-encoder')

diff --git a/dev-java/owasp-java-encoder/owasp-java-encoder-1.3.0.ebuild b/dev-java/owasp-java-encoder/owasp-java-encoder-1.3.0.ebuild
index 1695e28464d2..84640fdb1e59 100644
--- a/dev-java/owasp-java-encoder/owasp-java-encoder-1.3.0.ebuild
+++ b/dev-java/owasp-java-encoder/owasp-java-encoder-1.3.0.ebuild
@@ -21,8 +21,12 @@ KEYWORDS="~amd64"
 DEPEND=">=virtual/jdk-1.8:*"
 RDEPEND=">=virtual/jre-1.8:*"
 
-# skipping 10 tests because kinda unpredictable as it expects that it cannot
-# surpass a predefined value, which in some case obviously doesn't work.
+# skipping 10 tests because they seem to be unreliable depending on hardware used
+# as some of them fail on some setups because the benchmark results don't align
+# with the hardcoded value 200 for the expected results. here are some examples:
+# Benchmarked Encode.forJavaScript: 442,382250 ns/op (+253,85% on baseline)
+# Benchmarked Encode.forCssString: 446,929231 ns/op (+257,49% on baseline)
+# Benchmarked Encode.forJava: 409,038065 ns/op (+227,18% on baseline)
 JAVA_RM_FILES=( src/test/java/org/owasp/encoder/BenchmarkTest.java )
 JAVA_SRC_DIR="src/main/java"
 JAVA_TEST_GENTOO_CLASSPATH="junit-4"
-- 
cgit v1.2.3-65-gdbad