Ensure repeated compilation does not fail
authorMatthew Vogt <matthew.vogt@nokia.com>
Mon, 21 May 2012 03:40:22 +0000 (13:40 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 21 May 2012 09:22:43 +0000 (11:22 +0200)
commitf16f4c3b78eb0138b2dca455f702b9335eb03f40
tree323af783bc8cc4c132d6e6b8e24c207dae67b0b8
parent65500896a05344bdfd5fcbfa9a6456f48cd4e4a4
Ensure repeated compilation does not fail

Failure could result from the allocation of an address previously used
for the same class.  The test is repeated for a surprisingly large
count of repetitions to increase the chance of this occurring.

Change-Id: I045902c50021f23adbbd61fccf41b9c38657387a
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmltypeloader.cpp
tests/auto/qml/qqmlengine/data/failedCompilation.1.qml [new file with mode: 0644]
tests/auto/qml/qqmlengine/data/repeatedCompilation.qml [new file with mode: 0644]
tests/auto/qml/qqmlengine/tst_qqmlengine.cpp