4 # Check that d_off can be represented in a 32 bit long type without
5 # truncation. Note that this test will always succeed on a 64 bit
6 # systems where there is no smaller off_t.
8 # Based on a testcase from John Stanley <jpsinthemix@verizon.net>.
10 # http://oss.sgi.com/bugzilla/show_bug.cgi?id=808
12 #-----------------------------------------------------------------------
13 # Copyright (c) 2008 Christoph Hellwig.
15 # This program is free software; you can redistribute it and/or
16 # modify it under the terms of the GNU General Public License as
17 # published by the Free Software Foundation.
19 # This program is distributed in the hope that it would be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
24 # You should have received a copy of the GNU General Public License
25 # along with this program; if not, write the Free Software Foundation,
26 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 #-----------------------------------------------------------------------
33 echo "QA output created by $seq"
37 status=1 # failure is the default!
43 trap "_cleanup; exit \$status" 0 1 2 3 15
45 # get standard environment, filters and checks
49 # real QA test starts here
53 bitsperlong=`src/feature -w`
54 if [ "$bitsperlong" -ne 32 ]; then
55 _notrun "This test is only valid on 32 bit machines"
60 touch $TEST_DIR/ttt/$n;
62 src/t_dir_offset $TEST_DIR/ttt