summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcase.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update contact URL in license headers.Jason McDonald2009-08-121-1/+1
| | | | Reviewed-by: Trust Me
* Doc: add \since 4.6 for new functionsVolker Hilsheimer2009-08-101-0/+1
|
* Add QBENCMARK_ONCE to QTestLib.Morten Sorvig2009-08-101-0/+19
| | | | | | | | | | 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-071-37/+0
| | | | | | | | | 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>
* 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
* Allow testlib loggers to dynamically allocate storage for strings.Rohan McGovern2009-07-301-6/+46
| | | | | | | | | | | 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
|
* 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
|
* 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.
* Merge license header changes from 4.5Volker Hilsheimer2009-06-161-2/+2
|\
| * Update license headers as requested by the marketing department.Jason McDonald2009-06-161-2/+2
| | | | | | | | Reviewed-by: Trust Me
* | All of Qt's own code compiles with -pedantic now (but pcre and webkit don't ↵David Faure2009-06-041-3/+3
| | | | | | | | | | | | | | seem fixable easily) Merge-request: 594 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* | 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.
* | 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-231-0/+1933
|
* Long live Qt!Lars Knoll2009-03-231-0/+1939