38be0d1383
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12
20 lines
593 B
JavaScript
20 lines
593 B
JavaScript
#/bin/qscript
|
|
function QVERIFY(x, server) {
|
|
if (!(x)) {
|
|
throw(server.errorString());
|
|
}
|
|
}
|
|
var server = new QScriptLocalServer;
|
|
QVERIFY(server.listen("qlocalsocket_autotest"), server);
|
|
var done = args[1];
|
|
var testLine = "test";
|
|
while (done > 0) {
|
|
QVERIFY(server.waitForNewConnection(), server);
|
|
var serverSocket = server.nextConnection();
|
|
serverSocket.write(testLine);
|
|
QVERIFY(serverSocket.waitForBytesWritten(), serverSocket);
|
|
QVERIFY(serverSocket.errorString() == ""
|
|
||serverSocket.errorString() == "Unknown error", serverSocket);
|
|
--done;
|
|
}
|