2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017, Oracle and/or its affiliates. All Rights Reserved.
7 # Check what happens when SEEK_HOLE/SEEK_DATA are fed negative offsets.
10 seqres="$RESULT_DIR/$seq"
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
18 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile_$seq
23 rm -f $tmp.* $BASE_TEST_FILE
26 # get standard environment, filters and checks
33 _require_seek_data_hole
35 _require_test_program "seek_sanity_test"
37 _run_seek_sanity_test -s 18 -e 18 $BASE_TEST_FILE > $seqres.full 2>&1 ||
38 _fail "seek sanity check failed!"
42 echo "Silence is golden"