# # # add_dir "tests/drop_root" # # add_file "tests/drop_root/__driver__.lua" # content [ae69c6c17f2906e8db03ade626f757ad0c8cb74b] # ============================================================ --- tests/drop_root/__driver__.lua ae69c6c17f2906e8db03ade626f757ad0c8cb74b +++ tests/drop_root/__driver__.lua ae69c6c17f2906e8db03ade626f757ad0c8cb74b @@ -0,0 +1,13 @@ + +mtn_setup() + +-- We should not allow dropping the root, no matter how +-- we refer to it. Test that via "." in the root itself.. + +xfail(mtn("drop", "."), 1, false, false) + +-- ..or from a subdirectory via ".." + +mkdir("dir") +check(mtn("add", "dir"), 0, false, false) +xfail(indir("dir", mtn("drop", "..", "--recursive")), 1, false, false)