xfs/004: don't fail test due to realtime files
[xfstests-dev.git] / tests / xfs / 269
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016, Oracle and/or its affiliates.  All Rights Reserved.
4 #
5 # FS QA Test No. 269
6 #
7 # Check that attr_list_by_handle copies the cursor back to userspace.
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 -rf "$tmp".* $TEST_DIR/fsmap $TEST_DIR/testout
22 }
23
24 # get standard environment, filters and checks
25 . ./common/rc
26 . ./common/filter
27 . ./common/attr
28 . ./common/populate
29
30 # real QA test starts here
31 _require_scratch
32 _require_populate_commands
33 _require_test_program "attr-list-by-handle-cursor-test"
34
35 rm -f "$seqres.full"
36
37 echo "Format and mount"
38 _scratch_mkfs > "$seqres.full" 2>&1
39 _scratch_mount
40
41 echo "Stuff file with xattrs"
42 mkdir $SCRATCH_MNT/foo
43 __populate_create_attr $SCRATCH_MNT/foo 100
44
45 echo "Run test program"
46 $here/src/attr-list-by-handle-cursor-test $SCRATCH_MNT/foo
47
48 # success, all done
49 status=0
50 exit