summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-07-02 08:17:31 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-02 08:17:31 +0000
commite26ae24d00b4db2355949e2f0fcd0f6abaa857e3 (patch)
treea7f07779b2bc6b93a35bace270f298d621740a37
parent44d953555e27ad82767a45a50377ed7bb15c4a4a (diff)
downloadperl-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-xt/op/magic.t6
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;
}