Changeset 80161 in webkit


Ignore:
Timestamp:
Mar 2, 2011 1:33:47 PM (13 years ago)
Author:
Adam Roben
Message:

Look in the new-to-SnowLeopard location for crash logs on SnowLeopard and newer

ReportCrash saves logs to ~/Library/Logs/CrashReporter on Leopard, but to
~/Library/Logs/DiagnosticReports on SnowLeopard. old-run-webkit-tests was only looking in
the former location, but was getting lucky on some SnowLeopard machines because symlinks
were being created there pointing into DiagnosticReports. For machines without these
symlinks, crash logs were not getting captured.

Fixes <http://webkit.org/b/55607> old-run-webkit-tests doesn't capture crash logs on some
SnowLeopard machines

Reviewed by Eric Seidel.

  • Scripts/old-run-webkit-tests:

(captureSavedCrashLog): Look in ~/Library/Logs/DiagnosticReports on SnowLeopard and newer.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r80152 r80161  
     12011-03-02  Adam Roben  <aroben@apple.com>
     2
     3        Look in the new-to-SnowLeopard location for crash logs on SnowLeopard and newer
     4
     5        ReportCrash saves logs to ~/Library/Logs/CrashReporter on Leopard, but to
     6        ~/Library/Logs/DiagnosticReports on SnowLeopard. old-run-webkit-tests was only looking in
     7        the former location, but was getting lucky on some SnowLeopard machines because symlinks
     8        were being created there pointing into DiagnosticReports. For machines without these
     9        symlinks, crash logs were not getting captured.
     10
     11        Fixes <http://webkit.org/b/55607> old-run-webkit-tests doesn't capture crash logs on some
     12        SnowLeopard machines
     13
     14        Reviewed by Eric Seidel.
     15
     16        * Scripts/old-run-webkit-tests:
     17        (captureSavedCrashLog): Look in ~/Library/Logs/DiagnosticReports on SnowLeopard and newer.
     18
    1192011-03-02  Adam Roben  <aroben@apple.com>
    220
  • trunk/Tools/Scripts/old-run-webkit-tests

    r80152 r80161  
    17611761        $glob = File::Spec->catfile($testResultsDirectory, $windowsCrashLogFilePrefix . "*.txt");
    17621762    } elsif (isAppleMacWebKit()) {
    1763         $glob = File::Spec->catfile("~", "Library", "Logs", "CrashReporter", ($webProcessCrashed ? "WebProcess" : $dumpToolName) . "_*.crash");
     1763        my $crashLogDirectoryName;
     1764        if (isTiger() || isLeopard()) {
     1765            $crashLogDirectoryName = "CrashReporter";
     1766        } else {
     1767            $crashLogDirectoryName = "DiagnosticReports";
     1768        }
     1769
     1770        $glob = File::Spec->catfile("~", "Library", "Logs", $crashLogDirectoryName, ($webProcessCrashed ? "WebProcess" : $dumpToolName) . "_*.crash");
    17641771
    17651772        # Even though the dump tool has exited, CrashReporter might still be running. We need to
Note: See TracChangeset for help on using the changeset viewer.