From 647f58d1abe44cdbe3efbd65fdbe56d637efe742 Mon Sep 17 00:00:00 2001 From: "rcampbell%mozilla.com" Date: Tue, 20 Nov 2007 21:12:23 +0000 Subject: [PATCH] bug 404093 - broken mochitest on mac, p=robcee, r=gavin, sr=johnath git-svn-id: svn://10.0.0.236/trunk@239746 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/testing/mochitest/runtests.pl.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/testing/mochitest/runtests.pl.in b/mozilla/testing/mochitest/runtests.pl.in index 57c1e86222e..92dd3fb1e42 100644 --- a/mozilla/testing/mochitest/runtests.pl.in +++ b/mozilla/testing/mochitest/runtests.pl.in @@ -625,7 +625,9 @@ sub executeMac { die "cannot fork: $!"; } elsif ($pid == 0) { # run only the executable so we get a pid we can focus - $app .= "-bin"; + if ($app !~ /-bin$/) { + $app .= "-bin"; + } my @runargs = ($app, '-foreground', '-no-remote', '-profile', $profile_arg); push(@runargs, $test_url);