]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: refactor test-procfs-util for clarity and skip test on perm failure
authorDan Streetman <ddstreet@ieee.org>
Fri, 5 Nov 2021 20:56:16 +0000 (16:56 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 Nov 2021 07:37:08 +0000 (08:37 +0100)
commitbf47f71c1cd36c2b0eb5aeac4d8bdf58c67f2b33
treef5df0c05e3277c29472ac30841f1d4c204a4c8c7
parent2d8840eb6632a43956b73a1042e8b8244623494a
test: refactor test-procfs-util for clarity and skip test on perm failure

After commit c3dead53d50e334f2d072a2248256983d6dc9f8c the test can fail
if the procfs file(s) aren't writable, because the check for permission
failure happens after a call that will never fail, since setting the
limit to the existing limit will always pass.

This also refactors the function slightly to make the test var names
clearer.
src/test/test-procfs-util.c