Test Failure - macOSXFCmd-2.7 + macOSXFCmd-4.1 - On MacOS
Closed / Fixed7f2928e3a90a7c2da1c18cb391cb04a08fe5fef0Created 9 years agoUpdated 42 days ago
Descriptionplain2017-11-07 17:40:17
Building a fresh checkout of [84de05583b0631640bcb0f697345f4743c74da0b] on MacOS High Sierra using Xcode command line tools and running "make test" produces the following failed tests:
==== macOSXFCmd-2.7 MacOSXSetFileAttribute - rsrclength FAILED
==== Contents of test case:
catch {file delete -force -- foo.test}
close [open foo.test w]
catch {
set f [open foo.test/..namedfork/rsrc w]
fconfigure $f -translation lf -eofchar {}
puts -nonewline $f "foo"
close $f
}
list [catch {file attributes foo.test -rsrclength} msg] $msg [catch {file attributes foo.test -rsrclength 0} msg] $msg [catch {file attributes foo.test -rsrclength} msg] $msg [file delete -force -- foo.test]
---- Result was:
0 3 0 {} 0 3 {}
---- Result should have been (exact matching):
0 3 0 {} 0 0 {}
==== macOSXFCmd-2.7 FAILED
==== macOSXFCmd-4.1 TclMacOSXMatchType FAILED
==== Contents of test case:
file mkdir globtest
cd globtest
foreach f {bar baz foo inv inw .nv reg} {
catch {file delete -force -- $f.test}
close [open $f.test w]
}
catch {file delete -force -- dir.test}
file mkdir dir.test
catch {
file attributes bar.test -type FOOT
file attributes baz.test -creator FOOC -type FOOT
file attributes foo.test -creator FOOC
file attributes inv.test -hidden 1
file attributes inw.test -hidden 1 -type FOOT
file attributes dir.test -hidden 1
}
set res [list [catch {glob *.test} msg] $msg [catch {glob -types FOOT *.test} msg] $msg [catch {glob -types {{macintosh type FOOT}} *.test} msg] $msg [catch {glob -types FOOTT *.test} msg] $msg [catch {glob -types {{macintosh type FOOTT}} *.test} msg] $msg [catch {glob -types {{macintosh type {}}} *.test} msg] $msg [catch {glob -types {{macintosh creator FOOC}} *.test} msg] $msg [catch {glob -types {{macintosh creator FOOC} {macintosh type FOOT}} *.test} msg] $msg [catch {glob -types hidden *.test} msg] $msg [catch {glob -types {hidden FOOT} *.test} msg] $msg ]
cd ..
file delete -force globtest
set res
---- Result was:
0 {foo.test bar.test reg.test baz.test dir.test inv.test inw.test} 0 {bar.test baz.test inw.test} 0 {bar.test baz.test inw.test} 1 {bad argument to "-types": FOOTT} 1 {expected Macintosh OS type but got "FOOTT": } 0 {foo.test reg.test inv.test} 0 {foo.test baz.test} 0 baz.test 0 {.nv.test dir.test inv.test inw.test} 0 inw.test
---- Result should have been (exact matching):
0 {bar.test baz.test dir.test foo.test inv.test inw.test reg.test} 0 {bar.test baz.test inw.test} 0 {bar.test baz.test inw.test} 1 {bad argument to "-types": FOOTT} 1 {expected Macintosh OS type but got "FOOTT": } 0 {foo.test inv.test reg.test} 0 {baz.test foo.test} 0 baz.test 0 {.nv.test dir.test inv.test inw.test} 0 inw.test
==== macOSXFCmd-4.1 FAILED
dgpplain2017-11-07 17:47:09
No failure on sierra. Suspect OS regression.
serhiy.storchakawiki2026-10-21 09:06:36
Both tests were adjusted in October 2018, in 8.6.9 and later: [ad4bdf3aa8] sorts the glob results in macOSXFCmd-4.1 (APFS returns them unsorted), and [9e48ee9cb3] marks macOSXFCmd-2.7, which only works with HFS+ resource forks, nonPortable. Closing.
serhiy.storchaka Ticket [7f2928e3a9]: 3 changes
[History diff]2026-10-22 17:19:28
Log in (anonymous is fine) to add a comment.