Lua: Add waitms test

Change-Id: I281f0a5595140ff450e1a30e189286e1a5d8cf9d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-05-02 15:42:55 +02:00
parent 6c9cea2f82
commit 1c04192c51

View File

@@ -20,7 +20,15 @@ local function testSearchInPath()
print("Hostname found at:", result)
end
local function testWaitMs()
local u = require("Utils")
print("Starting to wait ...")
a.wait(u.waitms(1000))
print("About a second should have elapsed now.")
end
return {
testDirEntries = testDirEntries,
testSearchInPath = testSearchInPath,
testWaitMs = testWaitMs,
}