4 # Check ctime and mtime are updated on truncate(2) and ftruncate(2)
6 # Regression test for commit:
7 # 3972f26 btrfs: update timestamps on truncate()
9 #-----------------------------------------------------------------------
10 # Copyright (c) 2013 Red Hat, Inc. All Rights Reserved.
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.
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.
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 #-----------------------------------------------------------------------
28 seqres=$RESULT_DIR/$seq
29 echo "QA output created by $seq"
32 status=1 # failure is the default!
33 trap "_cleanup; exit \$status" 0 1 2 3 15
41 # get standard environment, filters and checks
45 # real QA test starts here
47 _supported_os IRIX Linux
49 testfile=$TEST_DIR/testfile.$seq
51 echo "Silence is golden"
53 $here/src/t_truncate_cmtime $testfile 2>&1