generic/402: Drop useless fail message
[xfstests-dev.git] / tests / generic / 354
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2016 SUSE Linux Products GmbH. All Rights Reserved.
4 #
5 # FSQA Test No. 354
6 #
7 # Test races between private file mapping faults from racing processes or
8 # threads
9 #
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13 tmp=/tmp/$$
14 status=1        # failure is the default!
15 trap "_cleanup; exit \$status" 0 1 2 3 15
16
17 _cleanup()
18 {
19         cd /
20         rm -f $tmp.*
21 }
22
23 # get standard environment and checks
24 . ./common/rc
25
26 # real QA test starts here
27 _supported_fs generic
28 _require_scratch
29 _require_test_program "holetest"
30
31 rm -f $seqres.full
32
33 _scratch_mkfs >>$seqres.full 2>&1
34 _scratch_mount
35
36 $here/src/holetest -f -p $SCRATCH_MNT/testfile 16
37 $here/src/holetest -f -p $SCRATCH_MNT/testfile 256
38 $here/src/holetest -f -p -F $SCRATCH_MNT/testfile 16
39 $here/src/holetest -f -p -F $SCRATCH_MNT/testfile 256
40
41 status=0
42 exit