Skip to content

Commit 06d3197

Browse files
committed
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.
1 parent a1f6d9d commit 06d3197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/op/magic.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,14 @@ EOP
476476
# A selection of kernels/distros tested:
477477
#
478478
# 4.18.0-348.20.1.el8_5.x86_64 (AlmaLinux 8.5): NUL then spaces
479+
# 4.18.0-348.23.1.el8_5.x86_64 (AlmaLinux 8.5): NUL, spaces, then NUL
479480
# 3.10.0-1160.62.1.el7.x86_64 (CentOS 7.9.2009): no NUL nor spaces
480481
# 2.6.32-954.3.5.lve1.4.87.el6.x86_64 (CloudLinux 6.10): ^^ ditto
481482
#
482483
# 5.13.0-1025-raspi (Ubuntu 21.10): NUL only
483484
# 5.10.103-v7+ (RaspiOS 10): NUL only
484485
#
485-
$got=~s/\0\s*\z//;
486+
$got =~ s/\0[\s\0]*\z//;
486487

487488
return $got;
488489
};

0 commit comments

Comments
 (0)