generic: Test page faults during read and write
[xfstests-dev.git] / tests / generic / 647
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2021 Red Hat, Inc.  All Rights Reserved.
4 #
5 # FS QA Test 647
6 #
7 # Trigger page faults in the same file during read and write
8 #
9 . ./common/preamble
10 _begin_fstest auto quick
11
12 # Override the default cleanup function.
13 _cleanup()
14 {
15         cd /
16         rm -f $tmp.*
17         rm -f $TEST_DIR/mmap-rw-fault.tmp
18 }
19
20 # get standard environment, filters and checks
21 . ./common/rc
22 . ./common/filter
23
24 # real QA test starts here
25
26 _supported_fs generic
27 _require_test
28 _require_test_program mmap-rw-fault
29
30 echo "Silence is golden"
31
32 $here/src/mmap-rw-fault $TEST_DIR/mmap-rw-fault.tmp
33
34 status=$?
35 exit