lib/: spdx license conversion
[xfstests-dev.git] / tests / generic / 212
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2009 Eric Sandeen.  All Rights Reserved.
4 #
5 # FS QA Test No. 212
6 #
7 # Run aio-io-setup-with-nonwritable-context-pointer -
8 # Test what happens when a non-writable context pointer is passed to io_setup
9 #
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13
14 here=`pwd`
15 tmp=/tmp/$$
16 status=1        # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
18
19 _cleanup()
20 {
21     cd /
22     rm -f $tmp.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28
29 # real QA test starts here
30
31 _supported_fs generic
32 _supported_os Linux
33 _require_test
34
35 _run_aiodio aio-io-setup-with-nonwritable-context-pointer
36
37 exit $status