fsx: Replace use of bcmp() with memcmp()
[xfstests-dev.git] / 048
1 #! /bin/sh
2 # FS QA Test No. 048
3 #
4 # test return codes from xfsctl on bad userspace address
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=dxm@sgi.com
12
13 seq=`basename $0`
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=1        # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
20
21 # get standard environment, filters and checks
22 . ./common.rc
23 . ./common.filter
24
25 _cleanup()
26 {
27     cd /
28     rm -f $tmp.*
29     _cleanup_testdir
30 }
31
32 # real QA test starts here
33 _supported_fs xfs
34 _supported_os IRIX Linux
35
36 _setup_testdir
37
38 src/fault $testdir || exit
39
40 # success, all done
41 status=0
42 exit