~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/50/50828e7b25280b45655cb33039d13d9971dcaaf3.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# on ia64 systems, the acats hangs in unaligned memory accesses.
 
4
# kill these testcases.
 
5
 
 
6
pidfile=acats-killer.pid
 
7
 
 
8
usage()
 
9
{
 
10
    echo >&2 "usage: `basename $0` [-p <pidfile>] <ada logfile> <next logfile>"
 
11
    exit 1
 
12
}
 
13
 
 
14
while [ $# -gt 0 ]; do
 
15
    case $1 in
 
16
    -p)
 
17
        pidfile=$2
 
18
        shift
 
19
        shift
 
20
        ;;
 
21
    -*)
 
22
        usage
 
23
        ;;
 
24
    *)
 
25
        break
 
26
    esac
 
27
done
 
28
 
 
29
[ $# -eq 2 ] || usage
 
30
 
 
31
logfile=$1
 
32
stopfile=$2
 
33
interval=30
 
34
 
 
35
echo $$ > $pidfile
 
36
 
 
37
while true; do
 
38
    if [ -f "$stopfile" ]; then
 
39
        echo "`basename $0`: finished."
 
40
        rm -f $pidfile
 
41
        exit 0
 
42
    fi
 
43
    sleep $interval
 
44
    if [ ! -f "$logfile" ]; then
 
45
        continue
 
46
    fi
 
47
    pids=$(ps aux | awk '/testsuite\/ada\/acats\/tests/ { print $2 }')
 
48
    if [ -n "$pids" ]; then
 
49
        sleep $interval
 
50
        pids2=$(ps aux | awk '/testsuite\/ada\/acats\/tests/ { print $2 }')
 
51
        if [ "$pids" = "$pids2" ]; then
 
52
            #echo kill: $pids
 
53
            kill $pids
 
54
            sleep 1
 
55
            pids2=$(ps aux | awk '/testsuite\/ada\/acats\/tests/ { print $2 }')
 
56
            if [ "$pids" = "$pids2" ]; then
 
57
                #echo kill -9: $pids
 
58
                kill -9 $pids
 
59
            fi
 
60
        fi
 
61
    fi
 
62
done