summaryrefslogtreecommitdiff
path: root/tests/generic/647
blob: b30394b13283870e5db055adb130ed86ce23fe5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2021 Red Hat, Inc.  All Rights Reserved.
#
# FS QA Test 647
#
# Trigger page faults in the same file during read and write
#
. ./common/preamble
_begin_fstest auto quick

# Override the default cleanup function.
_cleanup()
{
	cd /
	rm -f $tmp.*
	rm -f $TEST_DIR/mmap-rw-fault.tmp
}

# get standard environment, filters and checks
. ./common/filter

# real QA test starts here

_supported_fs generic
_require_test
_require_odirect
_require_test_program mmap-rw-fault
[ $FSTYP = "bcachefs" ] && _notrun "not supported on bcachefs - bcachefs has explicit buffered/dio locking"

echo "Silence is golden"

$here/src/mmap-rw-fault $TEST_DIR/mmap-rw-fault.tmp

status=$?
exit