# # # patch "tests/test_some_hook_helper_functions/testhooks" # from [2d4a8847698e79a88670c7f293fca602ae1ac246] # to [4c344db8109d494ac0b3bac8789ef97f4fc25ecf] # ============================================================ --- tests/test_some_hook_helper_functions/testhooks 2d4a8847698e79a88670c7f293fca602ae1ac246 +++ tests/test_some_hook_helper_functions/testhooks 4c344db8109d494ac0b3bac8789ef97f4fc25ecf @@ -9,7 +9,14 @@ if not globish_match("a*b", "acb") then ok = false end if globish_match("a{b", "abc") ~= nil then ok = false end - if ok then execute ("touch", "outfile") end + if ok then + if existsonpath("touch") == 0 then + execute ("touch", "outfile") + else + x = io.open("outfile", "w") + x:close() + end + end ignore_file = function (name) return true end return true