diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-02-23 01:36:05 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-02-23 01:36:05 (GMT) |
commit | 27f35a9cb588ad1dd595fafedc27e5a216bebf48 (patch) | |
tree | 26aeebf20b725a340ad58b3411257fed7b626423 /tests/auto/qtipc/lackey/scripts/systemlock_read.js | |
parent | d7c472e23b678b2898d34a37166e61402818e271 (diff) | |
parent | 14447cbbf7ee93e03286112b5b27d20961fd9551 (diff) | |
download | Qt-27f35a9cb588ad1dd595fafedc27e5a216bebf48.zip Qt-27f35a9cb588ad1dd595fafedc27e5a216bebf48.tar.gz Qt-27f35a9cb588ad1dd595fafedc27e5a216bebf48.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml
Diffstat (limited to 'tests/auto/qtipc/lackey/scripts/systemlock_read.js')
-rw-r--r-- | tests/auto/qtipc/lackey/scripts/systemlock_read.js | 11 |
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 |