summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-01 21:43:43 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit0ebd32d1cd1069a849c2c3968b632834fe1fc577 (patch)
treef095dbe6e17fe4b762060090f1b17a08916dd716 /src/test
parentc7beed3ba1b20cd87dfce3ab622232ed9eb201f2 (diff)
missing: define kernel internal limit TASK_COMM_LEN in userspace too
We already use it at two places, and we are about to add one too. Arbitrary literally hardcoded limits suck.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-process-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-process-util.c b/src/test/test-process-util.c
index c5931c522..0d890fa46 100644
--- a/src/test/test-process-util.c
+++ b/src/test/test-process-util.c
@@ -375,7 +375,7 @@ static void test_rename_process_now(const char *p, int ret) {
assert_se(get_process_comm(0, &comm) >= 0);
log_info("comm = <%s>", comm);
- assert_se(strneq(comm, p, 15));
+ assert_se(strneq(comm, p, TASK_COMM_LEN-1));
assert_se(get_process_cmdline(0, 0, false, &cmdline) >= 0);
/* we cannot expect cmdline to be renamed properly without privileges */