tests/auto/qtipc/lackey/scripts/systemlock_readwrite.js
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Wed, 21 Apr 2010 09:15:16 +0300
branchRCL_3
changeset 10 68d3b337861b
parent 7 3f74d0d4af4c
permissions -rw-r--r--
bac24638cd0e032feaaaf81f375284a059242729

function QVERIFY(x, debugInfo) {
    if (!(x)) {
        print(debugInfo);
        throw(debugInfo);
    }
}

var lock = new ScriptSystemLock;
lock.setKey("market");
QVERIFY(lock.lock());
QVERIFY(lock.unlock());