1 -- $Id: wait_for.lua,v 1.1 2005/02/01 22:10:14 cpressey Exp $
6 name = "wait_for test program",
7 logfile = "wait_for.log"
10 os.execute("rm -f /tmp/foo")
11 os.execute("sleep 10 && touch /tmp/foo &")
13 local ok, t = App.wait_for{
14 predicate = function()
15 return FileSystem.is_file("/tmp/foo")
18 App.log("App.wait_for() returned %s, %d", tostring(ok), t)