From 8a3873235fc5eedd60c42522834ab9405b12e1e2 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Mon, 13 Nov 2023 01:43:36 +0900 Subject: [PATCH] lslocks: (test) add a case for OFDLCK type locks Signed-off-by: Masatake YAMATO --- tests/expected/lslocks/lslocks-ofd--w | 4 ++++ tests/expected/lslocks/lslocks-ofd-r- | 4 ++++ tests/expected/lslocks/lslocks-ofd-rw | 6 ++++++ tests/ts/lslocks/lslocks | 6 +++--- 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 tests/expected/lslocks/lslocks-ofd--w create mode 100644 tests/expected/lslocks/lslocks-ofd-r- create mode 100644 tests/expected/lslocks/lslocks-ofd-rw diff --git a/tests/expected/lslocks/lslocks-ofd--w b/tests/expected/lslocks/lslocks-ofd--w new file mode 100644 index 0000000000..20b8bc9c01 --- /dev/null +++ b/tests/expected/lslocks/lslocks-ofd--w @@ -0,0 +1,4 @@ +test_mkfds OFDLCK 1B WRITE 0 0 +# ofd--w + COMMAND,TYPE,SIZE,MODE,START,END + --raw --noheadings: 0 +util-linux-lslocks-target-file +# ofd--w + PATH + --raw --noheadings: 0 diff --git a/tests/expected/lslocks/lslocks-ofd-r- b/tests/expected/lslocks/lslocks-ofd-r- new file mode 100644 index 0000000000..bf9e809943 --- /dev/null +++ b/tests/expected/lslocks/lslocks-ofd-r- @@ -0,0 +1,4 @@ +test_mkfds OFDLCK 1B READ 0 0 +# ofd-r- + COMMAND,TYPE,SIZE,MODE,START,END + --raw --noheadings: 0 +util-linux-lslocks-target-file +# ofd-r- + PATH + --raw --noheadings: 0 diff --git a/tests/expected/lslocks/lslocks-ofd-rw b/tests/expected/lslocks/lslocks-ofd-rw new file mode 100644 index 0000000000..dd3d71c959 --- /dev/null +++ b/tests/expected/lslocks/lslocks-ofd-rw @@ -0,0 +1,6 @@ +test_mkfds OFDLCK 3B READ 0 0 +test_mkfds OFDLCK 3B WRITE 2 2 +# ofd-rw + COMMAND,TYPE,SIZE,MODE,START,END + --raw --noheadings: 0 +util-linux-lslocks-target-file +util-linux-lslocks-target-file +# ofd-rw + PATH + --raw --noheadings: 0 diff --git a/tests/ts/lslocks/lslocks b/tests/ts/lslocks/lslocks index fc64c8546c..1f56bafd3c 100755 --- a/tests/ts/lslocks/lslocks +++ b/tests/ts/lslocks/lslocks @@ -37,9 +37,9 @@ METHODS=( posix-r- posix--w posix-rw -# ofd-r- -# ofd--w -# ofd-rw + ofd-r- + ofd--w + ofd-rw lease-w ) -- 2.47.3