Test removing a non-empty directory

This commit is contained in:
Andrew Gaul 2015-07-21 11:51:07 -07:00
parent cbc057bca7
commit 5f792a9a2b

View File

@ -271,6 +271,16 @@ fi
rm_test_file
rm_test_dir
##########################################################
# Testing removing a non-empty directory
##########################################################
echo "Testing removing a non-empty directory"
mk_test_dir
touch "${TEST_DIR}/file"
rmdir "${TEST_DIR}" 2>&1 | grep -q "Directory not empty"
rm "${TEST_DIR}/file"
rm_test_dir
##########################################################
# Testing rename before close
##########################################################