Merge pull request #220 from andrewgaul/test-rmdir-nonempty-directory

Test removing a non-empty directory
This commit is contained in:
Takeshi Nakatani 2015-08-12 23:41:08 +09:00
commit edb3c78fe9

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
##########################################################