commit 993ef5ebc65ee2fc9aa11921674e8e5291a0eef7 from: Mikhail via: Stefan Sperling date: Mon May 29 14:50:36 2023 UTC add regression test for 'got rm *' $PWD removal Patch by Mikhail commit - 7f4e5320512ed5a2b28d740e0dc25cde52ba1876 commit + 993ef5ebc65ee2fc9aa11921674e8e5291a0eef7 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