]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: add --fcntl testing to flock
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Wed, 8 May 2024 13:32:26 +0000 (15:32 +0200)
committerRasmus Villemoes <rasmus.villemoes@prevas.dk>
Wed, 8 May 2024 13:48:41 +0000 (15:48 +0200)
commit0c359281d8c9a4a82305c0b5952e208de697643b
tree981758ee45a4a6d93a88a68b3920f31c15eedf17
parentebc2a8fcf952e0a95198ec8f8e54cce45d9d7f91
tests: add --fcntl testing to flock

All the existing tests are also done with --fcntl in effect, and then
we add one more test, namely that a flock(2) lock can be be obtained
even while a fcntl(2) lock is held - not that anyone should ever need
that, but it does show that the lock types are completely independent.
tests/expected/misc/flock
tests/expected/misc/flock-fcntl [new file with mode: 0644]
tests/expected/misc/flock-fcntl-exclusive [new file with mode: 0644]
tests/expected/misc/flock-fcntl-fd [new file with mode: 0644]
tests/expected/misc/flock-fcntl-no-fork [new file with mode: 0644]
tests/expected/misc/flock-fcntl-non-block [new file with mode: 0644]
tests/expected/misc/flock-fcntl-shared [new file with mode: 0644]
tests/expected/misc/flock-fcntl-time-check [new file with mode: 0644]
tests/expected/misc/flock-fcntl-timeout [new file with mode: 0644]
tests/expected/misc/flock-fcntl-vs-flock [new file with mode: 0644]
tests/ts/misc/flock