xfs/530: skip test if user MKFS_OPTIONS screw up formatting
[xfstests-dev.git] / tests / xfs / 452
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Red Hat Inc.  All Rights Reserved.
4 #
5 # FS QA Test 452
6 #
7 # Test xfs_db by bad character in field list selector string. The issue
8 # has been fixed by xfsprogs 945e47e2.
9 #
10 . ./common/preamble
11 _begin_fstest auto db
12
13 # Import common functions.
14 . ./common/filter
15
16 # Modify as appropriate.
17 _supported_fs xfs
18 _require_scratch
19
20 _scratch_mkfs_xfs >> $seqres.full 2>&1
21 inum=`_scratch_xfs_get_metadata_field rootino "sb 0"`
22
23 echo "= check bad character * ="
24 _scratch_xfs_db -c "inode $inum" -c "print core.*"
25 echo "= check bad character trailing slash ="
26 _scratch_xfs_db -c "inode $inum" -c "print core.\\"
27 echo "= check missing closing quote ="
28 _scratch_xfs_db -c "inode $inum" -c "print core.\""
29
30 # success, all done
31 status=0
32 exit