summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2024-08-03 10:11:42 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-08-03 10:11:55 +0200
commit73efed650da577848f5a9b33ff9703148986725a (patch)
treea099a462a5f08b0d74e6520321627a02ae052100 /dev-java/owasp-java-encoder
parentdev-java/owasp-java-encoder: add 1.3.0 (diff)
downloadgentoo-73efed650da577848f5a9b33ff9703148986725a.tar.gz
gentoo-73efed650da577848f5a9b33ff9703148986725a.tar.bz2
gentoo-73efed650da577848f5a9b33ff9703148986725a.zip
dev-java/owasp-java-encoder: updated explanation for skipped tests
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/owasp-java-encoder')
-rw-r--r--dev-java/owasp-java-encoder/owasp-java-encoder-1.3.0.ebuild8
1 files changed, 6 insertions, 2 deletions
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"