diff options
Diffstat (limited to 'tests/auto/qtipc/lackey/scripts/systemsemaphore_acquirerelease.js')
-rw-r--r-- | tests/auto/qtipc/lackey/scripts/systemsemaphore_acquirerelease.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qtipc/lackey/scripts/systemsemaphore_acquirerelease.js b/tests/auto/qtipc/lackey/scripts/systemsemaphore_acquirerelease.js new file mode 100644 index 0000000..cedde3f --- /dev/null +++ b/tests/auto/qtipc/lackey/scripts/systemsemaphore_acquirerelease.js @@ -0,0 +1,11 @@ +function QVERIFY(x, debugInfo) { + if (!(x)) { + print(debugInfo); + throw(debugInfo); + } +} + +var lock = new ScriptSystemSemaphore; +lock.setKey("store"); +QVERIFY(lock.acquire()); +QVERIFY(lock.release()); |