From 51b7f593114ca8c959b44d572af96ae3f9dd428c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 7 Jun 2023 19:34:25 -0500 Subject: [PATCH] If you "touch abc Abc" on MacOS you only get one file, so skip those tests. --- tests/ls.test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ls.test b/tests/ls.test index c1dbcf09..ed6cde66 100755 --- a/tests/ls.test +++ b/tests/ls.test @@ -85,6 +85,8 @@ mkdir zzz dir && echo hello > xxx && sleep .05 && echo longer > abc X=999; for i in abc x abc.jkl zzz xxx Abc cde.def dir bcd.ghi do sleep .05; touch -d @$((X--)) $i; done +# MacOS filesystems are case insensitive, so Abc and abc can't coexist. +[ "$(uname)" == Darwin ] && SKIP=999 testcmd '' '--group-directories-first' \ 'dir\nzzz\nAbc\nabc\nabc.jkl\nbcd.ghi\ncde.def\nx\nxxx\n' '' '' testcmd '' '-cr' 'abc\nx\nabc.jkl\nzzz\nxxx\nAbc\ncde.def\ndir\nbcd.ghi\n' '' '' @@ -99,3 +101,4 @@ TZ=utc testcmd '-otu' '-otu --full-time . | sed -n "s/.*:\([0-9]*\).*/\1/p"' \ '39\n38\n37\n36\n35\n34\n33\n32\n31\n' '' '' toyonly testcmd '' '--sort=reverse' 'zzz\nxxx\nx\ndir\ncde.def\nbcd.ghi\nabc.jkl\nabc\nAbc\n' '' '' toyonly testcmd '' '--sort=nocase,time' 'abc\nAbc\nabc.jkl\nbcd.ghi\ncde.def\ndir\nx\nxxx\nzzz\n' '' '' +SKIP=0 -- 2.39.2