From 1e6d1b8be324f1b94928f30b3298dce100ac41fd Mon Sep 17 00:00:00 2001 From: Todd Rinaldo Date: Mon, 16 May 2022 16:48:59 -0500 Subject: [PATCH] Loosen regex in tests which validate process name. This addresses some kernel inconsistencies on how the process name can be represented in the /proc file. This specifically addresses a failure on AlmaLinux 8. --- t/op/magic.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/op/magic.t b/t/op/magic.t index 3b1d95fc3b6e..2004a5055c99 100644 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -476,13 +476,14 @@ EOP # A selection of kernels/distros tested: # # 4.18.0-348.20.1.el8_5.x86_64 (AlmaLinux 8.5): NUL then spaces + # 4.18.0-348.23.1.el8_5.x86_64 (AlmaLinux 8.5): NUL, spaces, then NUL # 3.10.0-1160.62.1.el7.x86_64 (CentOS 7.9.2009): no NUL nor spaces # 2.6.32-954.3.5.lve1.4.87.el6.x86_64 (CloudLinux 6.10): ^^ ditto # # 5.13.0-1025-raspi (Ubuntu 21.10): NUL only # 5.10.103-v7+ (RaspiOS 10): NUL only # - $got=~s/\0\s*\z//; + $got =~ s/\0[\s\0]*\z//; return $got; };