tests: Fix test for new libcap output.

libcap commit 177cd41803 ("A more compact form for the text
representation of capabilities.") changed the format used by
cap_to_text(3), breaking our test.  Change the test to cope.  This
will break with older libcap now, but there's not a lot we can do
about it.
This commit is contained in:
Richard W.M. Jones
2021-03-22 13:52:41 +00:00
parent 245d1a3d7c
commit d4ab4ff683

View File

@@ -8039,7 +8039,7 @@ If no capabilities are attached to a file, an empty string is returned." };
InitScratchFS, Always, TestResultString (
[["touch"; "/cap_set_file_0"];
["cap_set_file"; "/cap_set_file_0"; "cap_chown=p cap_chown+e"];
["cap_get_file"; "/cap_set_file_0"]], "= cap_chown+ep"), [];
["cap_get_file"; "/cap_set_file_0"]], "cap_chown=ep"), [];
];
shortdesc = "set the Linux capabilities attached to a file";
longdesc = "\