summaryrefslogtreecommitdiff
path: root/dev-db/redis/redis-6.2.7-r1.ebuild
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@atlas.cz>2022-06-10 18:28:18 +0200
committerSam James <sam@gentoo.org>2022-06-12 21:36:38 +0100
commit6869d1ac8aa4ad0d4e9ce69066cb179ce3346f50 (patch)
treef07cc933164189c552606e36c4e2b456ed85769f /dev-db/redis/redis-6.2.7-r1.ebuild
parent846291ef3b7e72d4dcf178696dbbed8830edd166 (diff)
downloadgentoo-6869d1ac8aa4ad0d4e9ce69066cb179ce3346f50.tar.gz
gentoo-6869d1ac8aa4ad0d4e9ce69066cb179ce3346f50.tar.bz2
gentoo-6869d1ac8aa4ad0d4e9ce69066cb179ce3346f50.zip
dev-db/redis: skip oom-score-adj related tests for some FEATURES
oom-score-adj related unit tests fail when usersandbox or -userpriv FEATURES are set, therefore let's skip them. They were introduced as unit/oom-score-adj tests in 6.2.0 but they were backported to 6.0.7. Later, "CONFIG SET rollback on apply error" test was added in version 7.0.0 which also tries to adjust OOM score. Closes: https://bugs.gentoo.org/756382 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/25831 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/redis/redis-6.2.7-r1.ebuild')
-rw-r--r--dev-db/redis/redis-6.2.7-r1.ebuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/dev-db/redis/redis-6.2.7-r1.ebuild b/dev-db/redis/redis-6.2.7-r1.ebuild
index 7c3fb2239fa5..a15818f6a3db 100644
--- a/dev-db/redis/redis-6.2.7-r1.ebuild
+++ b/dev-db/redis/redis-6.2.7-r1.ebuild
@@ -136,10 +136,12 @@ src_test() {
--clients "$(makeopts_jobs)" # see bug #649868
)
- # Known to fail with FEATURES=usersandbox
- if has usersandbox ${FEATURES}; then
- ewarn "You are emerging ${P} with 'usersandbox' enabled." \
- "Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
+ if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then
+ ewarn "unit/oom-score-adj test will be skipped." \
+ "It is known to fail with FEATURES usersandbox or -userpriv. See bug #756382."
+
+ # unit/oom-score-adj was introduced in version 6.2.0
+ runtestargs+=( --skipunit unit/oom-score-adj ) # see bug #756382
fi
if use ssl; then