summaryrefslogtreecommitdiff
path: root/tests/xfs/549
blob: 925ca993f2dd07b92aa5f5990b85ed171d1d35b4 (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
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2022 FUJITSU LIMITED. All rights reserved.
#
# FS QA Test No. 549
#
# Regression test for xfsprogs commit
# 50dba8189b1f ("mkfs: terminate getsubopt arrays properly")
#
# This case test mkfs.xfs whether can terminate getsubopt arrays properly.
# If not, it will trigger segmentation fault.
#

. ./common/preamble
_begin_fstest auto quick mkfs

# real QA test starts here
_supported_fs xfs
_fixed_by_git_commit xfsprogs 50dba8189b1f \
	"mkfs: terminate getsubopt arrays properly"
_require_test

$MKFS_XFS_PROG -f -d agcount=4 -d garbage=0 >> $seqres.full  2>&1

echo "Silence is golden"

# success, all done
status=0
exit