bug 404093 - broken mochitest on mac, p=robcee, r=gavin, sr=johnath
authorrcampbell@mozilla.com
Tue, 20 Nov 2007 13:12:23 -0800
changeset 8233 04e026bd0dff37e2d5aa531402081d214e44f62d
parent 8232 89a257d2b1c9c367ef097982c6f38bd46f26a5cf
child 8234 3b174577e0b3e9dcda891556186b85942e06fe06
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherderautoland@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin, johnath
bugs404093
milestone1.9b2pre
bug 404093 - broken mochitest on mac, p=robcee, r=gavin, sr=johnath
testing/mochitest/runtests.pl.in
--- a/testing/mochitest/runtests.pl.in
+++ b/testing/mochitest/runtests.pl.in
@@ -620,17 +620,19 @@ sub runTests {
 
 sub executeMac {
   my ($profile_arg, $test_url) = @_;
   my $pid = fork();
   if (not defined $pid) {
     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);
     
     # redirect stderr to stdout for easier buildbot / tinderbox logging
     #$ENV{'XPCOM_DEBUG_BREAK'} = 'stack';
     open (STDERR, '>&', \*STDOUT) || die $!;
     exec @runargs or die("Error starting application: $!\n");
   } else {