2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2008 Christoph Hellwig.
7 # Check that d_off can be represented in a 32 bit long type without
8 # truncation. Note that this test will always succeed on a 64 bit
9 # systems where there is no smaller off_t.
11 # Based on a testcase from John Stanley <jpsinthemix@verizon.net>.
13 # http://oss.sgi.com/bugzilla/show_bug.cgi?id=808
16 seqres=$RESULT_DIR/$seq
17 echo "QA output created by $seq"
21 status=1 # failure is the default!
27 trap "_cleanup; exit \$status" 0 1 2 3 15
29 # get standard environment, filters and checks
33 # real QA test starts here
37 bitsperlong=`$here/src/feature -w`
38 if [ "$bitsperlong" -ne 32 ]; then
39 _notrun "This test is only valid on 32 bit machines"
44 touch $TEST_DIR/ttt/$n;
46 $here/src/t_dir_offset $TEST_DIR/ttt