2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Red Hat Inc. All Rights Reserved.
7 # Test getcwd() failure after unsuccessful rmdir
9 # Upstream commit ce9113bbcbf4 ("ovl: fix getcwd() failure after unsuccessful
10 # rmdir") fixed this issue
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
28 # get standard environment, filters and checks
34 # real QA test starts here
40 # make a non-empty dir $seq
41 mkdir -p $TEST_DIR/$seq/$seq.sub
42 # cd to it and call rmdir on it, rmdir should fail
44 rmdir ../$seq >>$seqres.full 2>&1
45 # getcwd should return the correct current dir
46 pwd | _filter_test_dir