1 function QVERIFY(x, debugInfo) {
2 if (!(x)) {
3 print(debugInfo);
4 throw(debugInfo);
5 }
6 }
7
8 var lock = new ScriptSystemLock;
9 lock.setKey("market");
10 QVERIFY(lock.lock());
11 QVERIFY(lock.unlock());