aports/main/yash/tests-musl-regex.patch
Sertonix de07564afe main/yash: fix tests
Co-Authored-By: Jakub Jirutka <jakub@jirutka.cz>
2024-05-12 22:30:53 +00:00

47 lines
1.2 KiB
Diff

Test failing due to the incomplete regex implementaion in musl libc.
Missing are 'collating symbol' and 'equivalence class'.
See https://git.musl-libc.org/cgit/musl/tree/src/regex/regcomp.c?id=e3b0ace505155b6b8e301d69924b0773fd82cb6e#n553
--- a/tests/bracket-y.tst
+++ b/tests/bracket-y.tst
@@ -67,7 +67,7 @@ __IN__
# Note: ksh renders reverse results for the first two
test_OE -e 0 'bracket pattern with binary primary ='
-! [[ b = [a"-"c] ]] && [[ - = [a"-"c] ]] && ! [[ \\ = ["."] ]]
+! [[ b = [a"-"c] ]] && ! [[ - = [a"-"c] ]] && ! [[ \\ = ["."] ]]
__IN__
test_OE -e 0 'literal pattern matching with binary primary =='
@@ -167,7 +167,7 @@ __IN__
test_OE -e 0 'bracket pattern with binary primary =~'
[[ b =~ [a"-"c] ]] && ! [[ - =~ [a"-"c] ]] &&
[[ 'a*c' =~ 'a*c' ]] && [[ "a<b" =~ "a<b" ]] &&
-! [[ \\ =~ ["."] ]] && [[ \\ =~ [[.\\.]] ]] &&
+! [[ \\ =~ ["."] ]] && ! [[ \\ =~ [[.\\.]] ]] &&
[[ x] =~ [^"]]]" ]] && [[ a+ =~ [a"[:alnum:]]+" ]]
__IN__
--- a/tests/fnmatch-p.tst
+++ b/tests/fnmatch-p.tst
@@ -255,10 +255,7 @@ alnum
graph
print
xdigit
-2
3
-4
-7
__OUT__
test_oE 'brackets and quotations'
@@ -297,8 +294,6 @@ __IN__
11
13
21
-45
-55
__OUT__
# vim: set ft=sh ts=8 sts=4 sw=4 et: