From: Tobias Ulmer Date: Tue, 9 Sep 2014 11:53:57 +0000 (+0200) Subject: remove disabled lock test code X-Git-Tag: e2factory-2.3.15rc1~185 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=5d17980815e8fc64288920c59370cfa3df203346;p=e2factory.git remove disabled lock test code Signed-off-by: Tobias Ulmer --- diff --git a/generic/lock.lua b/generic/lock.lua index 290b748..0534572 100644 --- a/generic/lock.lua +++ b/generic/lock.lua @@ -98,33 +98,6 @@ function lock.cleanup(l) end end ---[[ -local test=false -if test then - -- some dummy functions to test without context... - function err.new(x) - return true - end - e2lib = {} - e2lib.mkdir = function(x) - print("mkdir " .. x) - return true - end - e2lib.rmdir = function(x) - print("rmdir " .. x) - return true - end - - l = new() - - l:lock("/tmp/foo1") - l:lock("/tmp/foo2") - l:lock("/tmp/foo3") - l:unlock("/tmp/foo2") - l:cleanup() -end -]] - return strict.lock(lock) -- vim:sw=4:sts=4:et: