diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-02-14 14:51:16 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-02-16 09:33:15 +0000 |
commit | 2cfcd34138d6f7851b4006dd77dd73e242727512 (patch) | |
tree | 8ca84a80dda638013c038741101ebe3734f438f1 /tests/auto/blackbox/testdata/wixDependencies | |
parent | cee7367f72c4c2321e6f324bb36be0b6923db640 (diff) |
Fix race conditions in innosetup, wix and nsis modules
As first attempted in 7f6ec1cc27.
Change-Id: Ib76dbdfc0a60b27d38d93a22c9556d54f07a3dac
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/wixDependencies')
-rw-r--r-- | tests/auto/blackbox/testdata/wixDependencies/wixDependencies.qbs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/auto/blackbox/testdata/wixDependencies/wixDependencies.qbs b/tests/auto/blackbox/testdata/wixDependencies/wixDependencies.qbs index e84ac8864..2d9763ef1 100644 --- a/tests/auto/blackbox/testdata/wixDependencies/wixDependencies.qbs +++ b/tests/auto/blackbox/testdata/wixDependencies/wixDependencies.qbs @@ -47,14 +47,16 @@ Project { var cmd = new JavaScriptCommand(); cmd.silent = true; cmd.sourceCode = function() { - for (var i = 0; i < outputs["c"].length; ++i) { - var tf; - try { - tf = new TextFile(outputs["c"][i].filePath, TextFile.WriteOnly); - tf.writeLine("int main" + i + "() { return 0; }"); - } finally { - if (tf) - tf.close(); + for (var j = 0; j < 1000; ++j) { // Artificial delay. + for (var i = 0; i < outputs["c"].length; ++i) { + var tf; + try { + tf = new TextFile(outputs["c"][i].filePath, TextFile.WriteOnly); + tf.writeLine("int main" + i + "() { return 0; }"); + } finally { + if (tf) + tf.close(); + } } } }; |