# # # patch "tests/diff_patch_drop/__driver__.lua" # from [7169de5155c5b68d837d66271cc09c446af8a4f1] # to [44f918b35a0cafe04c3e0f80f6da64664d8cf32c] # ============================================================ --- tests/diff_patch_drop/__driver__.lua 7169de5155c5b68d837d66271cc09c446af8a4f1 +++ tests/diff_patch_drop/__driver__.lua 44f918b35a0cafe04c3e0f80f6da64664d8cf32c @@ -30,9 +30,11 @@ if string.match(ostype, "BSD") then -- http://article.gmane.org/gmane.comp.version-control.monotone.devel/17597 if string.match(ostype, "BSD") then check({"patch", "-p0", "-E"}, 0, false, false, true) + check(not exists("dir/file")) else + -- GNU patch should only remove the file + -- but it is a little aggressive and removes the dir too! check({"patch", "-p0"}, 0, false, false, true) + check(not exists("dir/file")) + check(not exists("dir")) end - -check(not exists("dir/file")) -check(not exists("dir"))