3 # This file and its contents are supplied under the terms of the
4 # Common Development and Distribution License ("CDDL"), version 1.0.
5 # You may only use this file in accordance with the terms of version
8 # A full copy of the text of the CDDL should have accompanied this
9 # source. A copy of the CDDL is also available via the Internet at
10 # http://www.illumos.org/license/CDDL.
14 # Copyright 2016 Joyent, Inc.
18 # Add regression tests for illumos#5079. Verify that psignal and
19 # psiginfo print what we expect to stderr.
26 ps_sig32
=$ps_root/psignal-5097.32
27 ps_sig64
=$ps_root/psignal-5097.64
28 ps_out
=/tmp
/$
(basename $0).$$
33 echo "Test Failed: $msg" >&2
40 typeset outfile
=$ps_out.
test
42 $prog >/dev
/null
2>$outfile || fatal
"$prog unexpectedly failed"
43 diff $ps_out $outfile || fatal
"$ps_out and $outfile differ " \
49 hello world: Segmentation Fault
51 hello world : Segmentation Fault ( from process 0 )
52 Information Request ( from process 0 )
55 [[ $?
-ne 0 ]] && fatal
"failed to set up output file"