From: Nguyễn Thái Ngọc Duy Date: Wed, 10 Oct 2012 10:40:51 GMT Subject: [PATCH v4 12/12] t3070: disable two fnmatch tests that have different results on different libc Message-ID: <1349865651-31889-13-git-send-email-pclouds@gmail.com> In-Reply-To: <1349865651-31889-1-git-send-email-pclouds@gmail.com> fnmatch on glibc-2.12.1 returns no match. glibc-2.15 returns ok. Signed-off-by: Nguyễn Thái Ngọc Duy --- t/t3070-wildmatch.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t3070-wildmatch.sh b/t/t3070-wildmatch.sh index f21da6c..38042eb 100755 --- a/t/t3070-wildmatch.sh +++ b/t/t3070-wildmatch.sh @@ -13,6 +13,8 @@ match() { fi && if [ $2 = 1 ]; then test-wildmatch fnmatch '$3' '$4' + elif [ $2 = x ]; then + true else ! test-wildmatch fnmatch '$3' '$4' fi @@ -129,8 +131,8 @@ match 1 1 ']' '[\]]' match 0 0 '\]' '[\]]' match 0 0 '\' '[\]]' match 0 0 'ab' 'a[]b' -match 0 1 'a[]b' 'a[]b' -match 0 1 'ab[' 'ab[' +match 0 x 'a[]b' 'a[]b' +match 0 x 'ab[' 'ab[' match 0 0 'ab' '[!' match 0 0 'ab' '[-' match 1 1 '-' '[-]' -- 1.7.12.1.406.g6ab07c4