summaryrefslogtreecommitdiff
path: root/regress/sys/arch/mvme88k/usertrap/testsuite.sh
blob: 1f46acf6d61d61d9b0361e2709db533c458976c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /bin/sh
#	$OpenBSD: testsuite.sh,v 1.1 2003/09/01 19:45:28 miod Exp $

# Simple test program to check what happens when userland tries to trap.
# Written by Miodrag Vallat 2003 AD -- public domain

PROG=./trap

ulimit -c 0

echo -n "Privilege violation: "
${PROG} 0
echo -n "Privilege violation: "
${PROG} 1
echo -n "Privilege violation: "
${PROG} 127
echo -n "Alternate system call: "
${PROG} 128
echo -n "Alternate system call: "
${PROG} 129
echo -n "DDB breakpoint: "
${PROG} 130
echo -n "DDB trace: "
${PROG} 131
echo -n "DDB entry: "
${PROG} 132
#echo -n "SIGSYS: "
#${PROG} 255
#echo -n "SIGSYS: "
#${PROG} 256
#echo -n "SIGSYS: "
#${PROG} 400
echo -n "System call: "
${PROG} 450
#echo -n "SIGSYS: "
#${PROG} 495
echo -n "BUG: "
${PROG} 496
# since there won't be any output...
echo
#echo -n "SIGTRAP: "
#${PROG} 502
echo -n "Software divide by zero: "
${PROG} 503
echo -n "Single step: "
${PROG} 504
echo -n "Breakpoint: "
${PROG} 511

exit 0