summaryrefslogtreecommitdiffstats
path: root/src/testlib
Commit message (Collapse)AuthorAgeFilesLines
* Update contact URL in license headers.Jason McDonald2009-08-1259-59/+59
| | | | Reviewed-by: Trust Me
* Perform the variable initalizations _before_ starting the clock.Morten Sorvig2009-08-111-2/+2
| | | | Removes a few of cycles erronously included in the results.
* Compile.Morten Sorvig2009-08-111-1/+1
|
* Fix BC breakage caused by commit 7aa2d76d.Morten Sorvig2009-08-112-1/+9
| | | | | Code compiled with 4.5 expects to find the QBenchmarkIterationController() constructor, so ad an overload instead of replacing it.
* Doc: add \since 4.6 for new functionsVolker Hilsheimer2009-08-101-0/+1
|
* Doc: Fix qdoc warningsVolker Hilsheimer2009-08-102-2/+10
|
* Link with winscw againHarald Fernengel2009-08-101-1/+1
| | | | | compiler mangles "struct" and "class" differently, so make sure that QTestCharBuffer is always forward declared as "struct".
* Add QBENCMARK_ONCE to QTestLib.Morten Sorvig2009-08-104-4/+39
| | | | | | | | | | The code block associated with QBENCHMARK_ONCE macro will only be executed once, whether the backend returns a valid result or not. The "-iterations" command line argument is also ignored. This is useful for benchmarking code that has side effects. Revby: jasplin
* Refactor QTestCharBuffer a bitHarald Fernengel2009-08-0715-218/+257
| | | | | | | | | Use a static buffer for small strings, and making it oom safe. We can now see messages up to 512 bytes even if we run out of memory (important for OOM tests). Also, testlogging (< 512 bytes per line) should again work without a single allocation. Reviewed-By: Rohan McGovern <rohan.mcgovern@nokia.com>
* fixing outputMessage in qplaintestlogger.cpp for Windows CEJoerg Bornemann2009-08-061-5/+7
| | | | | | | | There's a restriction to output only 255 characters per line. The loop we had before was wrong and did some read operations somewhere behinde the end of the message string. Reviewed-by: thartman
* 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
| |