diff options
author | Christian Pointner <equinox@spreadspace.org> | 2011-03-05 19:11:20 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2011-03-05 19:11:20 +0000 |
commit | b387243639c4294c00bfd51f6d8187653d6a032d (patch) | |
tree | e86da246c46842eb1be9c3f3a1ba966167b1104a /test.lua | |
parent | added svn default dirs (diff) |
initial checkin
Diffstat (limited to 'test.lua')
-rwxr-xr-x | test.lua | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/test.lua b/test.lua new file mode 100755 index 0000000..b1961c8 --- /dev/null +++ b/test.lua @@ -0,0 +1,51 @@ +#!/usr/bin/lua + +mq = require "luamq" + +q, err = mq.create("/nownext", "wo") +if q == nil then + print(err) + return 1 +end +print("q created successfully") + + +result, err = mq.close(q) +if result == nil then + print(err) + return 1 +end +print("q closed successfully") + + + + +q, err = mq.open("/nownext", "ro") +if q == nil then + print(err) + return 1 +end +print("q opened successfully") + +result, err = mq.close(q) +if result == nil then + print(err) + return 1 +end +print("q closed successfully") + + + + + +result, err = mq.unlink("/nownext") +if result == nil then + print(err) + return 1 +end +print("q deleted successfully") + + +return 0 + + |