tst_qsharedpointer: Fix auto test fail under Windows 7
authorDebao Zhang <dbzhang800@gmail.com>
Tue, 13 Mar 2012 17:46:39 +0000 (10:46 -0700)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Mar 2012 10:40:50 +0000 (11:40 +0100)
commit65a2613e3e4fd341c2be35cb4eaf03d0918c2661
tree5aed60f960e72d6f7a4e480e3224b668fc2b6a6f
parent92659bacda53da782c84dff44d3caa2590dbc7cc
tst_qsharedpointer: Fix auto test fail under Windows 7

The tst_QSharedPointer generate another Process to test some invalid
codes, and it expect that the prcoess will crash and return a non-zero
value.

The process which is a console application was linked to windows
subsystem, and QProcess seems can not get its return value. This
cause the unit test fail.

In addition, when the process crash under debug mode, a debug error
report-dialog will appear, which is very annoying, so I suppress it too.

Task-number: QTBUG-24160
Change-Id: Ia1c872d4515c83b0aa516bcfe3783f59797d2d49
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
tests/auto/corelib/tools/qsharedpointer/externaltests.cpp
tests/auto/corelib/tools/qsharedpointer/qsharedpointer.pro