summaryrefslogtreecommitdiff
path: root/tests/modules/os/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/os/test.lua')
-rw-r--r--tests/modules/os/test.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/modules/os/test.lua b/tests/modules/os/test.lua
index ffb81d3cc..681a2ec75 100644
--- a/tests/modules/os/test.lua
+++ b/tests/modules/os/test.lua
@@ -1,4 +1,6 @@
function main()
+ -- get mclock
+ local tm = os.mclock()
-- test cpdir
os.mkdir("test1")
assert(os.exists("test1"))
@@ -28,4 +30,9 @@ function main()
assert(os.exists("test2/test1/test1"))
os.rmdir("test2")
assert(not os.exists("test2"))
+ -- test setenv
+ os.setenv("__AWD","DWA")
+ assert(os.getenv("__AWD")=="DWA")
+ -- assert mclock
+ assert(os.mclock()>=tm)
end