xfstests: make 258 more forgiving of timestamp rounding
[xfstests-dev.git] / 221
1 #! /bin/bash
2 # FS QA Test No. 221
3 #
4 # Check ctime updates when calling futimens without UTIME_OMIT for the
5 # mtime entry.
6 #
7 # Based on a bug report and testcase from Eric Blake <ebb9@byu.net>.
8 #
9 #-----------------------------------------------------------------------
10 # Copyright (c) 2010 Christoph Hellwig.  All Rights Reserved.
11 #
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License as
14 # published by the Free Software Foundation.
15 #
16 # This program is distributed in the hope that it would be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write the Free Software Foundation,
23 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
24 #
25 #-----------------------------------------------------------------------
26 #
27 # creator
28 owner=hch@lst.de
29
30 seq=`basename $0`
31 echo "QA output created by $seq"
32
33 here=`pwd`
34 tmp=/tmp/$$
35 status=1        # failure is the default!
36
37 # get standard environment, filters and checks
38 . ./common.rc
39
40 # real QA test starts here
41 _supported_fs generic
42 _supported_os Linux
43
44 echo "Silence is golden."
45
46 (cd $TEST_DIR && $here/src/t_futimens)
47
48 status=0
49 exit $status