From bb067b2e880c5b5373f0da290b192d03b75e7d1f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 4 Feb 2022 11:31:31 -0500 Subject: tests: Disable some glob tests on macOS macOS seems to have a non-compliant fnmatch() that doesn't treat invalid character class expressions literally. --- tests.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests.sh b/tests.sh index c83b6c6..28226e3 100755 --- a/tests.sh +++ b/tests.sh @@ -1313,11 +1313,21 @@ function test_name_character_class() { } function test_name_bracket() { + if [ "$UNAME" = "Darwin" ]; then + # fnmatch() is broken on macOS + return 0 + fi + # An unclosed [ should be matched literally bfs_diff weirdnames -name '[' } function test_name_backslash() { + if [ "$UNAME" = "Darwin" ]; then + # fnmatch() is broken on macOS + return 0 + fi + # An unescaped \ doesn't match bfs_diff weirdnames -name '\' } -- cgit v1.2.3