summaryrefslogtreecommitdiff
path: root/tests/generic/313
blob: d4b1256d69a73500a51eb34cb0d697dcb6bc5f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2013 Red Hat, Inc.  All Rights Reserved.
#
# FS QA Test No. 313
#
# Check ctime and mtime are updated on truncate(2) and ftruncate(2)
#
# Regression test for commit:
# 3972f26 btrfs: update timestamps on truncate()
#
. ./common/preamble
_begin_fstest auto quick

# Override the default cleanup function.
_cleanup()
{
    cd /
    rm -f $testfile
}

# Import common functions.
. ./common/filter

# real QA test starts here
_supported_fs generic
_require_test

testfile=$TEST_DIR/testfile.$seq

echo "Silence is golden"

$here/src/t_truncate_cmtime $testfile 2>&1

status=0
exit