2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
7 # exercise xfs_db bug #784078
10 _begin_fstest db auto quick
12 # Import common functions.
15 status=0 # success is the default!
17 # real QA test starts here
21 [ -f core ] && rm -f core
22 [ -f core ] && echo "Warning: can't nuke existing core file!"
27 [ -f core ] && echo "FAILED - core file"
28 [ ! -f core -a $sts != 0 ] && echo "FAILED - non-zero exit status"
32 # real QA test starts here
35 _test_xfs_db -r -c 'pop' -c 'type sb'
39 _test_xfs_db -r -c 'push sb'
43 _test_xfs_db -r -c 'pop' -c 'push sb'
47 _test_xfs_db -r -c 'type sb' -c 'print'
51 _test_xfs_db -r -c 'inode 128' -c 'push' -c 'type' >$tmp.out 2>&1
53 if ! grep -q "current type is \"inode\"" $tmp.out; then
58 _test_xfs_db -r -c 'sb' -c 'a' >$tmp.out 2>&1 # don't care about output
62 _test_xfs_db -r -c 'ring'