On other operating systems fcntl and flock may not actually be
independent, failing the test. This happens for example on macOS.
Only run this subtest on Linux.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
ts_finalize_subtest
# fcntl locks are independent of flock locks, so we should be able to get an exclusive flock lock.
- if [ "$api" = "fcntl" ] ; then
+ if [ "$(uname -s)" = "Linux" ] && [ "$api" = "fcntl" ] ; then
ts_init_subtest "fcntl-vs-flock"
do_lock "--nonblock --exclusive" 0 "flock vs fcntl"
ts_finalize_subtest