xfs: fix old fuzz test invocations of xfs_repair
[xfstests-dev.git] / tests / xfs / 048
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 048
6 #
7 # test return codes from xfsctl on bad userspace address
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
17
18 # get standard environment, filters and checks
19 . ./common/rc
20 . ./common/filter
21
22 _cleanup()
23 {
24     cd /
25     rm -f $tmp.*
26 }
27
28 # real QA test starts here
29 _supported_fs xfs
30 _require_test
31
32 $here/src/fault $TEST_DIR || exit
33
34 # success, all done
35 status=0
36 exit