qt5base-lts/tests/auto/selftests
Rohan McGovern 949be8cbdd test: fixed `assert' selftest for release-only mac builds
This test intentionally crashes itself by using Q_ASSERT.

Since Q_ASSERT is a no-op in release builds, the .pro file was
attempting to always force debug mode for this project.

However, on platforms where debug vs release affect linkage (e.g. mac
and windows), this is invalid.  On these platforms, debug mode can't be
enabled unless debug versions of the Qt libraries are available, which
they are not if Qt is configured with `-no-debug-and-release -release'.

Use a different method to ensure that Q_ASSERT really asserts, for both
debug and release builds.

Change-Id: I13eea2c72c77a0a981850dbcaa77f65f147c8490
Reviewed-on: http://codereview.qt.nokia.com/4015
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
2011-09-01 23:55:39 +02:00
..
alive tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
assert test: fixed `assert' selftest for release-only mac builds 2011-09-01 23:55:39 +02:00
badxml tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchlibcallgrind tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchlibeventcounter tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchliboptions tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchlibtickcounter tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchlibwalltime tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
cmptest tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
commandlinedata tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
crashes tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
datatable tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
datetime tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
differentexec tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
exceptionthrow tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
expectfail tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
failinit tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
failinitdata tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
fetchbogus tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
globaldata tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
longstring tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
maxwarnings tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
multiexec tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
qexecstringlist tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
singleskip tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
skip tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
skipglobal tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
skipinit tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
skipinitdata tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
sleep tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
strcmp tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
subtest tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
test tests: fix private header inclusion in qtbase autotests 2011-05-11 17:04:19 +10:00
waitwithoutgui tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
warnings tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
xunit tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
.gitignore Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_alive.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_assert.lightxml Remove XFAIL from selftests for some platforms 2011-08-31 13:12:43 +02:00
expected_assert.txt Remove XFAIL from selftests for some platforms 2011-08-31 13:12:43 +02:00
expected_assert.xml Remove XFAIL from selftests for some platforms 2011-08-31 13:12:43 +02:00
expected_assert.xunitxml Remove XFAIL from selftests for some platforms 2011-08-31 13:12:43 +02:00
expected_badxml.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_badxml.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_badxml.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_badxml.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibcallgrind.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_benchlibcallgrind.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibcallgrind.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibcallgrind.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibeventcounter.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_benchlibeventcounter.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibeventcounter.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibeventcounter.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchliboptions.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_benchliboptions.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchliboptions.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchliboptions.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibtickcounter.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_benchlibtickcounter.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibtickcounter.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibtickcounter.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibwalltime.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_benchlibwalltime.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibwalltime.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibwalltime.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_cmptest.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_cmptest.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_cmptest.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_cmptest.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_commandlinedata.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_commandlinedata.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_commandlinedata.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_commandlinedata.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_crashes_1.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_crashes_2.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_crashes_3.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_crashes.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_crashes.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_crashes.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datatable.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_datatable.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datatable.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datatable.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datetime.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_datetime.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datetime.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datetime.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_differentexec.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_exceptionthrow.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_exceptionthrow.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_exceptionthrow.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_exceptionthrow.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_expectfail.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_expectfail.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_expectfail.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_expectfail.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinit.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_failinit.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinit.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinit.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinitdata.lightxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinitdata.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinitdata.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinitdata.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_fatal.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_fetchbogus.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_fetchbogus.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_fetchbogus.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_fetchbogus.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_globaldata.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_globaldata.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_globaldata.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_globaldata.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_longstring.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_longstring.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_longstring.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_longstring.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_maxwarnings.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_maxwarnings.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_maxwarnings.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_maxwarnings.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_multiexec.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_multiexec.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_multiexec.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_multiexec.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_qexecstringlist.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_singleskip.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_singleskip.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_singleskip.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_singleskip.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skip.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_skip.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_skip.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skip.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipglobal.lightxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipglobal.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipglobal.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipglobal.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinit.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_skipinit.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinit.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinit.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinitdata.lightxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinitdata.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinitdata.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinitdata.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_sleep.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_sleep.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_sleep.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_sleep.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_strcmp.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_strcmp.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_strcmp.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_strcmp.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_subtest.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_subtest.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_subtest.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_subtest.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_waitwithoutgui.lightxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_waitwithoutgui.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_waitwithoutgui.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_waitwithoutgui.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_warnings.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_warnings.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_warnings.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_warnings.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_xunit.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_xunit.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_xunit.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_xunit.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
selftests.pro Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
selftests.qrc Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
tst_selftests.cpp Simplify qtestlib logging code, part 1 2011-09-01 03:10:39 +02:00