4 # Test for pwrite hang problem when writing from mmaped buffer of the same page
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2010 Intel Corporation
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
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
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.
22 #-----------------------------------------------------------------------
26 seqres=$RESULT_DIR/$seq
27 echo "QA output created by $seq"
31 status=1 # failure is the default!
32 trap "_cleanup; exit \$status" 0 1 2 3 15
37 rm -f $tmp.* $TESTFILE
40 # get standard environment, filters and checks
44 # real QA test starts here
46 # Modify as appropriate.
51 TESTFILE=$TEST_DIR/test_file
52 TEST_PROG=$here/src/pwrite_mmap_blocked