diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-03 09:39:16 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-03 09:39:16 +0100 |
commit | 6434a83d01d96e9f9a17ed9ce1f04a7d64859950 (patch) | |
tree | 3052865b3496164e503655d87fb1b9d1e4d52c1b /src/test/test-procfs-util.c | |
parent | c3dead53d50e334f2d072a2248256983d6dc9f8c (diff) | |
download | systemd-6434a83d01d96e9f9a17ed9ce1f04a7d64859950.tar.gz |
test-process-util: also add EROFS to the list of "good" errors
It is only added in the one place where we actually try to set the
setting to a new value. Before we were testing if we can set to it the
existing value, which was a noop. We could still get a permission error,
but this is the first place where we would propagate EROFS.
Diffstat (limited to 'src/test/test-procfs-util.c')
-rw-r--r-- | src/test/test-procfs-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-procfs-util.c b/src/test/test-procfs-util.c index fb9894d280..b5016ecd2d 100644 --- a/src/test/test-procfs-util.c +++ b/src/test/test-procfs-util.c @@ -51,7 +51,7 @@ int main(int argc, char *argv[]) { r = procfs_tasks_set_limit(v-1); log_info_errno(r, "procfs_tasks_set_limit: %m"); - assert_se(r >= 0 || ERRNO_IS_PRIVILEGE(r)); + assert_se(r >= 0 || ERRNO_IS_PRIVILEGE(r) || r == -EROFS); assert_se(procfs_get_threads_max(&w) >= 0); assert_se(r >= 0 ? w == v - 1 : w == v); |