Home | History | Annotate | Download | only in amd64-darwin
      1 #! /bin/sh
      2 
      3 dir=`dirname $0`
      4 
      5 # Remove ==pid== and **pid** strings 
      6 perl -p -e 's/(==|\*\*)[0-9]{1,7}\1 //' |
      7 
      8 perl -p -e 's/0x[0-9A-Fa-f]+/0x......../g' |
      9 
     10 # Older bash versions print abnormal termination messages on the stderr
     11 # of the bash process. Newer bash versions redirect such messages properly.
     12 # Suppress any redirected abnormal termination messages. You can find the
     13 # complete list of messages in the bash source file siglist.c.
     14 perl -n -e 'print if !/^(Segmentation fault|Alarm clock|Aborted|Bus error)( \(core dumped\))?$/' |
     15 
     16 # Remove the size in "The main thread stack size..." message.
     17 sed "s/The main thread stack size used in this run was [0-9]*/The main thread stack size used in this run was .../"
     18 
     19 # NOTE: it is essential for the bug345887 testcase that the stderr
     20 #       filtering does *not* remove lines beginning with --
     21