From 855c15d32d2f655b85154db5fdce83aca56dd106 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Thu, 30 Jun 2022 11:53:08 +1000 Subject: workaround an apparent bug with setproctitle() on DragonflyBSD The sequence of calls to setproctitle() seems to mess up some internal OS state, which ends up making the more fundamental $0 tests fail later in the file. Reported upstream as https://bugs.dragonflybsd.org/issues/3319 Fixes #19894 --- t/op/magic.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/op/magic.t b/t/op/magic.t index 2004a5055c..b91c4d9c03 100644 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -434,8 +434,13 @@ EOP } # Check that assigning to $0 properly handles UTF-8-stored strings: +SKIP: { - + # setproctitle() misbehaves on dragonfly + # https://bugs.dragonflybsd.org/issues/3319 + # https://github.com/Perl/perl5/issues/19894 + skip "setproctitle() is flaky on DragonflyBSD", 11 + if $^O eq "dragonfly"; # Test both ASCII and EBCDIC systems: my $char = chr( utf8::native_to_unicode(0xe9) ); -- cgit v1.2.1