summaryrefslogtreecommitdiffstats
path: root/tests/auto/selftests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.5'Thiago Macieira2009-08-031-3/+4
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/corelib/tools/qsharedpointer.cpp src/corelib/tools/qsharedpointer_impl.h src/gui/dialogs/qcolordialog.cpp src/gui/painting/qwindowsurface_raster.cpp src/network/access/qnetworkaccessmanager.cpp tests/auto/qsharedpointer/externaltests.cpp
| * Disable benchlibtickcounter test by default.Rohan McGovern2009-07-291-3/+4
| | | | | | | | | | | | | | This test depends on some low-level features of the CPU and the OS scheduler which seem impractical to automatically verify independently of the test. So turn it off to stop its intermittent failures in our test farm.
* | Allow testlib loggers to dynamically allocate storage for strings.Rohan McGovern2009-07-306-1/+101
| | | | | | | | | | | | | | | | | | | | | | This enables very long failure messages (e.g. including an entire build log in a failure message). This change modifies only the plain test logger to use this feature. Task: 253861 Reviewed-by: Michael Goddard
* | Added a QVariant testlib toString specialization.Rohan McGovern2009-07-282-2/+64
| | | | | | | | | | | | | | | | If comparing two variants fails, the failure message will now output the type and value of the variants (rather than "Compared values are not the same"). Reviewed-by: Thiago
* | Fixed failure of xunit selftest on Windows.Rohan McGovern2009-07-171-9/+2
| |
* | Use Unix signal handlers to properly close the test log when a test isRohan McGovern2009-07-153-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | terminated by a signal. The new XML testloggers in Qt 4.6 only output a testlog after the test completes. Therefore, if a test crashes, no testlog will be output at all. This is a functional regression from Qt 4.5 and earlier where the testlog would be output up to the point where the crash occurred. This is a Unix-specific fix for this problem. This change is also useful for hanging tests; if the test is killed with SIGTERM it will output the test log up to the current test before it exits.
* | Fixed recompile of tests/auto/selftests/exception.Rohan McGovern2009-07-156-9/+9
| | | | | | | | | | | | Turns out making a binary named `exception' is quite a bad idea... when some code does `#include <exception>', guess which file gets picked up :-)
* | Fixed selftest failure.Rohan McGovern2009-07-151-2/+2
| | | | | | | | Update maxwarnings for testlib string change.
* | Update license headers in files that are new in 4.6.Jason McDonald2009-06-172-4/+4
| | | | | | | | Reviewed-by: Trust Me
* | Merge license header changes from 4.5Volker Hilsheimer2009-06-1634-68/+68
|\ \ | |/
| * Update license headers as requested by the marketing department.Jason McDonald2009-06-1634-68/+68
| | | | | | | | Reviewed-by: Trust Me
* | Merge commit 'origin/4.5'Bjørn Erik Nilsen2009-06-121-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: demos/boxes/glshaders.cpp src/gui/graphicsview/qgraphicsitem.cpp tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp tools/linguist/shared/cpp.cpp translations/linguist_ja.qm translations/qt_ru.qm
| * Fixed intermittent failure of tst_selftests.Rohan McGovern2009-06-091-1/+1
| | | | | | | | Allow more variance for the benchlibtickcounter selftest.
| * Fixed failure of tst_Selftests::checkXML.Rohan McGovern2009-06-013-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-pick of 548da9a5434d615456a7a6efda3380b7138c6000 and some earlier changes predating public repo. Note that this test is not failing if using Qt 4.5 only. However, it fails if using Qt 4.5 selftests against Qt master testlib. We want to be able to use master testlib to run 4.5 testcases, and this change does no harm when using Qt 4.5 testlib, so backport it to 4.5 for convenience. Original change description follows: A few tests use printf, which means they interfere with the XML test logging. Blacklist them for the XML test. Note that these tests happened to pass under the old test logger implementation. That was because the test logger always printed XML tags on a single line, and the printf calls contained no special XML characters. The test logs generated were technically valid XML but contained extraneous text.
* | Fixed incorrect pass/fail semantics for xpass/xfail when usingRohan McGovern2009-05-192-1/+41
| | | | | | | | | | | | | | | | | | | | xunitxml testlib logger. In the testlib plain logger, xfail is considered a pass and xpass considered a fail. xunitxml had the opposite behavior; change it to be the same. Autotest: included
* | Fixed qDebugs within tests being written as "error" tags in theRohan McGovern2009-05-072-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | xunitxml testlog. `error' in xunit causes many xunit processing tools to consider the test as failing. This is different semantics from native testlib XML, where a qDebug is considered a message and not a failure. Change it to put qDebugs under the "system-err" tag when using xunitxml to retain semantic compatibility with testlib XML. Autotest: tst_selftests
* | Fixed failure of tst_Selftests::checkXML.Rohan McGovern2009-05-061-6/+5
| | | | | | | | | | | | | | | | | | | | | | A few tests use printf, which means they interfere with the XML test logging. Blacklist them for the XML test. Note that these tests happened to pass under the old test logger implementation. That was because the test logger always printed XML tags on a single line, and the printf calls contained no special XML characters. The test logs generated were technically valid XML but contained extraneous text.
* | Made tst_Selftests::checkXML actually test the new (Qt 4.6) test logger.Rohan McGovern2009-05-062-28/+42
| | | | | | | | | | Previously `-flush' was always passed to the child process, meaning the old (Qt 4.5) test logger was used exclusively in this test, hiding bugs.
* | Add license headers for these two files, which are new in 4.6 and didn't have itThiago Macieira2009-04-211-0/+34
| |
* | Merge branch '4.5'Rohan McGovern2009-03-2636-37/+39
|\ \ | |/ | | | | | | Conflicts: tests/auto/selftests/tst_selftests.cpp
| * Change testlib selftest targets to help autotest tools.Rohan McGovern2009-03-2633-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | The testlib subtests are conceptually not standalone unit tests, rather they are helper programs for the real unit test, tst_selftests. So, as is done for other similar tests (e.g. qprocess), don't name them with `tst_'. This makes it easier for automated tools to figure out that they shouldn't directly run these tests. Reviewed-by: Shane Bradley
| * Remove outdated script which can't have worked since we stopped usingRohan McGovern2009-03-251-34/+0
| | | | | | | | perforce.
| * Long live Qt 4.5!Lars Knoll2009-03-23107-0/+6679
|
* Long live Qt!Lars Knoll2009-03-23113-0/+7051