summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtipc/lackey/scripts/systemlock_read.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtipc/lackey/scripts/systemlock_read.js')
-rw-r--r--tests/auto/qtipc/lackey/scripts/systemlock_read.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qtipc/lackey/scripts/systemlock_read.js b/tests/auto/qtipc/lackey/scripts/systemlock_read.js
new file mode 100644
index 0000000..1048bc7
--- /dev/null
+++ b/tests/auto/qtipc/lackey/scripts/systemlock_read.js
@@ -0,0 +1,11 @@
+function QVERIFY(x, debugInfo) {
+ if (!(x)) {
+ print(debugInfo);
+ throw(debugInfo);
+ }
+}
+
+var lock = new ScriptSystemLock;
+lock.setKey("market");
+QVERIFY(lock.lockReadOnly());
+QVERIFY(lock.unlock()); \ No newline at end of file