Commit Diff


commit - 8ec7352a93a3c62a7786b92e4183aa7cb0b34869
commit + 7e3abb642d77b49ca6d8c8178c56c07ae53224a5
blob - 6d656a615120185ccc425dcf94d85399757b7de5
blob + d899fe6aa4df3b3f3630eb5bf4cea1c559d16968
--- regress/cmdline/rm.sh
+++ regress/cmdline/rm.sh
@@ -689,7 +689,27 @@ test_rm_nonexistent_directory() {
 	test_done "$testroot" "$ret"
 }
 
+test_rm_asterisk() {
+	local testroot=`test_init rm_asterisk`
+
+	got checkout $testroot/repo $testroot/wt > /dev/null
+	ret=$?
+	if [ $ret -ne 0 ]; then
+		test_done "$testroot" "$ret"
+		return 1
+	fi
 
+	(cd $testroot/wt/epsilon && got rm * > /dev/null)
+
+	if [ ! -e $testroot/wt/epsilon ]; then
+		echo "epsilon directory doesn't exist" >&2
+		test_done "$testroot" "1"
+		return 1
+	fi
+
+	test_done "$testroot" "0"
+}
+
 test_parseargs "$@"
 run_test test_rm_basic
 run_test test_rm_with_local_mods
@@ -701,3 +721,4 @@ run_test test_rm_subtree
 run_test test_rm_symlink
 run_test test_rm_status_code
 run_test test_rm_nonexistent_directory
+run_test test_rm_asterisk