flock icon indicating copy to clipboard operation
flock copied to clipboard

fix t/smartos.bats tests

Open josephholsten opened this issue 11 years ago • 1 comments

omnios does not support the full set of features defined in t/default.bats, presumably because it does not have a native implementation of flock(2).

Either these features should be fixed, or disabled so users can't accidentally perform dangerous operations with a broken flock.

josephholsten avatar Aug 19 '14 21:08 josephholsten

This was originally due to using lockf() instead of fcntl(). lockf() does not support shared locks, so these bugs should have been expected.

it actually seems that most of these are throwing Bad file number errors.

Additionally, -u is not successfully unlocking files.

josephholsten avatar Aug 20 '14 05:08 josephholsten