diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-07-02 08:17:31 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-07-02 08:17:31 +0000 |
commit | e26ae24d00b4db2355949e2f0fcd0f6abaa857e3 (patch) | |
tree | a7f07779b2bc6b93a35bace270f298d621740a37 | |
parent | 44d953555e27ad82767a45a50377ed7bb15c4a4a (diff) | |
download | perl-e26ae24d00b4db2355949e2f0fcd0f6abaa857e3.tar.gz |
Fix from Enache Adrian for the magic.t failure in
FreeBSD: setproctitle() cannot get rid of the " (perl)".
p4raw-id: //depot/perl@19924
-rwxr-xr-x | t/op/magic.t | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/op/magic.t b/t/op/magic.t index 28e66d9f41..1f982216aa 100755 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -299,8 +299,10 @@ else { $ps; }; my $ps = $mydollarzero->("x"); - ok(!$ps || # we allow that something goes wrong with the ps command - $ps eq "x", 'altering $0 is effective (testing with `ps`)'); + ok(!$ps # we allow that something goes wrong with the ps command + # FreeBSD cannot get rid of the trailing " (perl)". + || $ps =~ /^x\b/, + 'altering $0 is effective (testing with `ps`)'); } else { skip("\$0 check only on Linux and FreeBSD") for 0, 1; } |