summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtipc/lackey/scripts/systemlock_readwrite.js
blob: fc6367ff4bc88047c9165ec2f589d57c966981af (plain)
1
2
3
4
5
6
7
8
9
10
11
function QVERIFY(x, debugInfo) {
    if (!(x)) {
        print(debugInfo);
        throw(debugInfo);
    }
}

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