summaryrefslogtreecommitdiffstats
path: root/src/testlib
Commit message (Collapse)AuthorAgeFilesLines
* Doc: fix warnings.Volker Hilsheimer2009-07-311-0/+2
|
* Fixed corrupt testlogs on Windows and other places where vsnprintf isRohan McGovern2009-07-311-3/+4
| | | | | | | | | | not C99-compliant. C99 says vsnprintf returns >= `size' when not enough memory was available. In practice, on Windows, glibc < 2.0.6, and probably plenty of other places it returns -1 instead. Reviewed-by: Rhys Weatherley
* Convert all testlib loggers to use dynamically allocated strings.Rohan McGovern2009-07-304-132/+112
| | | | | | | | | | | Most log elements in all loggers can now be of (more or less) arbitrary length. Selftests pass and are memcheck-clean. The increase in heap usage seems negligible (it's below the default minimum threshold of massif). Task: 253861 Reviewed-by: Michael Goddard
* Make QTestBasicStreamer use dynamically allocated strings.Rohan McGovern2009-07-3010-102/+153
| | | | | | | | | | This commit contains the bare minimum needed for the API to use dynamic allocation; some parts of the code still use static buffers and therefore have constraints on the size of output messages. Task: 253861 Reviewed-by: Michael Goddard
* Allow testlib loggers to dynamically allocate storage for strings.Rohan McGovern2009-07-304-9/+88
| | | | | | | | | | | 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
* Doc: Documentation for new toString(QVariant) overloadVolker Hilsheimer2009-07-291-0/+7
|
* Added a QVariant testlib toString specialization.Rohan McGovern2009-07-281-0/+25
| | | | | | | | 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
* Fix warnings when compiling Qt (tst_warnings).Thiago Macieira2009-07-252-4/+4
| | | | | Don't use old-style casts in Qt code. And avoid signed/unsigned comparisons (sizeof returns size_t, which is unsigned).
* Fixed valgrind warnings related to sigaction from every testcase.Rohan McGovern2009-07-211-1/+1
| | | | Whoops, don't do sigaction for (nonexistent) signal 0.
* Compile with QT_NO_PROCESS or QT_NO_SETTINGSHarald Fernengel2009-07-211-3/+3
| | | | | | Feature define logic was wrong Reviewed-by: Robert Griebl
* Doc: add \since 4.6 for new APIsVolker Hilsheimer2009-07-191-6/+0
|
* Doc: Documentation for QTouchEventSequenceVolker Hilsheimer2009-07-181-12/+102
|
* Fixed failure of badxml selftest on Windows.Rohan McGovern2009-07-171-8/+17
| | | | | | Don't try to write to files with special characters in the name. Also fix bizarre indent.
* Use Unix signal handlers to properly close the test log when a test isRohan McGovern2009-07-151-5/+81
| | | | | | | | | | | | | | | 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.
* src/testlib: LPCWSTR -> wchar_t*Marius Storm-Olsen2009-07-011-1/+1
| | | | | Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* Fix old/missing license headers from multitouch+gestures merge.Jason McDonald2009-06-291-2/+2
| | | | Reviewed-by: Trust Me
* Fixed link error of some test tools due to multiply definedRohan McGovern2009-06-271-0/+1
| | | | QTest::touchEvent().
* Add QTouchEvent::DeviceType and deviceType()Bradley T. Hughes2009-06-241-7/+11
| | | | | | | | | This enum indicates what kind of device generated the touch event (TouchScreen or TouchPad). We use this information to control how touch events are sent, specifically we restrict touch events to a single widget/QGraphicsItem on touch-pads, since there is no direct relationship between the physical touch location on the pad and the on- using the touch-pad).
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-231-1/+1
|\
| * Mention -maxwarnings in debug outputHarald Fernengel2009-06-221-1/+1
| | | | | | | | Fixes the very frequently asked question "how do I see the full output?"
* | compile after small API changesBradley T. Hughes2009-06-181-3/+2
| |
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-1758-116/+116
|\ \ | |/ | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene_p.h
| * Update license headers in files that are new in 4.6.Jason McDonald2009-06-1718-36/+36
| | | | | | | | Reviewed-by: Trust Me
| * Merge license header changes from 4.5Volker Hilsheimer2009-06-1640-80/+80
| |\
| | * Update license headers as requested by the marketing department.Jason McDonald2009-06-1640-80/+80
| | | | | | | | | | | | Reviewed-by: Trust Me
| * | doc: Fixed several qdoc warnings.Martin Smith2009-06-121-0/+60
| | |
* | | Merge of masterBradley T. Hughes2009-06-151-0/+60
| | |
* | | remove duplicated code and API (merge QTouchEvent and QGraphicsSceneTouchEvent)Bradley T. Hughes2009-06-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | the API for these 2 classes is identical, the implementation is almost identical, they share the same data structures, so bite the bullet and merge them. this means we go back to using screenPos() instead of globalPos() again
* | | s,RawKeyEvent,RawTouchEvent,gBradley T. Hughes2009-06-081-2/+2
| | | | | | | | | | | | how embarassing :/
* | | Fix linking on WindowsBradley T. Hughes2009-06-081-1/+2
| | | | | | | | | | | | Need to move the extern declaration out of the QtTest namespace
* | | Compile after API updatesBradley T. Hughes2009-06-051-38/+20
| | |
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-0512-12/+66
|\ \ \ | |/ /
| * | All of Qt's own code compiles with -pedantic now (but pcre and webkit don't ↵David Faure2009-06-042-4/+4
| | | | | | | | | | | | | | | | | | | | | seem fixable easily) Merge-request: 594 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
| * | Fix headers in the XUnit feature.Thiago Macieira2009-06-049-7/+61
| | | | | | | | | | | | | | | | | | | | | All Qt headers must have QT_BEGIN_HEADER, QT_END_HEADER and QT_MODULE. These headers didn't have this. Reviewed-by: TrustMe
| * | Enable valgrind on Mac OS X as well.Morten Sørvig2009-06-041-1/+1
| | |
* | | Improved touch event emulation code in testlib.Denis Dzyubenko2009-06-031-26/+24
| | | | | | | | | | | | | | | | | | | | | | | | * Added a context for the touch positions in press(), move(), release() functions. * Sending RawTouch events to QApplication object if the target widget is not specified.
* | | Moved the QTest::touchEvent() implementation to testlib.Denis Dzyubenko2009-06-033-1/+171
|/ / | | | | | | Modified it the same time to remove refcount and static variable.
* | improved string operations all over the placeThierry Bastian2009-05-284-13/+13
| | | | | | | | | | used character operations whenever possible better usage of QLatin1String
* | Fixed incorrect pass/fail semantics for xpass/xfail when usingRohan McGovern2009-05-191-6/+15
| | | | | | | | | | | | | | | | | | | | 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
* | Find chart.exe on windows.Morten Sørvig2009-05-141-2/+6
| |
* | Add the chart utility from qtestlib-tools.Morten Sørvig2009-05-121-19/+10
| | | | | | | | | | | | | | | | | | | | It is now possible run the benchmarks with "-chart" to generate charts for benchmarks that produce chartable data. See examples/qtestlib/tutorial5 for an example. This patch has minimal inpact on QTestLib itself. Most of the functionality is implemented in a separate tool which QTestLIb calls after detecting the chart command line option.
* | Add the "We mean it" warning to a private header that didn't have it.Jason McDonald2009-05-071-0/+11
| | | | | | | | Reviewed-by: Trust Me
* | Add license header to source files that don't have one.Jason McDonald2009-05-0720-2/+739
| | | | | | | | Reviewed-by: Trust Me
* | Fixed qDebugs within tests being written as "error" tags in theRohan McGovern2009-05-079-16/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 invalid XML from testlib: `<Incident type="fail" (null)="" ...'Rohan McGovern2009-05-061-1/+4
| | | | | | | | | | | | | | When failing without a filename, setting file to 0 does not work. File must be set to "". Autotest: 2d194009379a4e199ec246ca053ee97ee733482f
* | Fixed invalid XML from testlib.Rohan McGovern2009-05-061-1/+1
| | | | | | | | | | | | | | Obvious typo in format string: `<DataTag><![CDATA[%s]]></Description>', closing tag should be `DataTag'. Autotest: 2d194009379a4e199ec246ca053ee97ee733482f
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-04-231-1/+1
|\ \ | |/ | | | | | | | | | | Conflicts: src/corelib/global/qfeatures.h src/gui/painting/qtransform.cpp util/scripts/make_qfeatures_dot_h
| * Fixes unit tests always giving 0 exit code when Qt is configured withRohan McGovern2009-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | `-developer-build'. This was an undocumented hack to make it easier for our autotest scripts to detect crashes in unit tests. Going forward, it should not be required. Reviewed-by: Shane Bradley Acked-by: Jesper Thomschütz
| * Long live Qt 4.5!Lars Knoll2009-03-2344-0/+13329
|
* Fixes compile of testlib when Qt is configured with `-qtnamespace'.Rohan McGovern2009-03-2419-3/+88
| | | | Reviewed-by: Andy Shaw