generic/520: Remove sync in clean_dir
[xfstests-dev.git] / tests / generic / 248
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 #    Copyright (c) 2010 Intel Corporation
4 #
5 # FS QA Test No. 248
6 #
7 # Test for pwrite hang problem when writing from mmaped buffer of the same page 
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 _cleanup()
19 {
20     cd /
21     rm -f $tmp.* $TESTFILE
22 }
23
24 # get standard environment, filters and checks
25 . ./common/rc
26 . ./common/filter
27
28 # real QA test starts here
29
30 # Modify as appropriate.
31 _supported_fs generic
32 _supported_os Linux
33 _require_test
34
35 TESTFILE=$TEST_DIR/test_file
36 TEST_PROG=$here/src/pwrite_mmap_blocked
37
38 $TEST_PROG $TESTFILE
39
40 # success, all done
41 status=0
42 exit