summaryrefslogtreecommitdiffstats
path: root/client/test.lua
blob: 38e7429a7b17779ef38ad84e1e16b5aa8393c555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

ps = require("privsep")

c = ps.connect()

mymod = c:wrap("mymod")

if mymod == nil then
	print("mymod is nil")
end

pos = require("posix")

print(mymod.myfunc("arg1", true))
for i = 1, 1000 do
	mymod.myfunc("foo", false)
end

c:close()