xfstests 250: remove unwanted new line in 250.out
[xfstests-dev.git] / 248
1 #! /bin/bash
2 # FS QA Test No. 248
3 #
4 # Test for pwrite hang problem when writing from mmaped buffer of the same page 
5 #
6 #-----------------------------------------------------------------------
7 #    Copyright (c) 2010 Intel Corporation
8 #
9 #    This program is free software; you can redistribute it and/or modify it
10 #    under the terms of the GNU General Public License as published by the Free
11 #    Software Foundation; version 2 of the License
12 #
13 #    This program is distributed in the hope that it will be useful, but
14 #    WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 #    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16 #    for more details.
17 #
18 #    You should have received a copy of the GNU General Public License along
19 #    with this program; if not, write to the Free Software Foundation, Inc., 59
20 #    Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #
22 #-----------------------------------------------------------------------
23 #
24 # creator
25 owner=xin.zhong@intel.com
26
27 seq=`basename $0`
28 echo "QA output created by $seq"
29
30 here=`pwd`
31 tmp=/tmp/$$
32 status=1        # failure is the default!
33 trap "_cleanup; exit \$status" 0 1 2 3 15
34
35 _cleanup()
36 {
37     cd /
38     rm -f $tmp.* $TESTFILE
39 }
40
41 # get standard environment, filters and checks
42 . ./common.rc
43 . ./common.filter
44
45 # real QA test starts here
46
47 # Modify as appropriate.
48 _supported_fs generic
49 _supported_os Linux
50
51 TESTFILE=$TEST_DIR/test_file
52 TEST_PROG=$here/src/pwrite_mmap_blocked
53
54 $TEST_PROG $TESTFILE
55
56 # success, all done
57 status=0
58 exit