| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Reviewed-by: Trust Me
|
|
|
|
| |
Removes a few of cycles erronously included in the results.
|
| |
|
|
|
|
|
| |
Code compiled with 4.5 expects to find the QBenchmarkIterationController()
constructor, so ad an overload instead of replacing it.
|
| |
|
| |
|
|
|
|
|
| |
compiler mangles "struct" and "class" differently, so make sure that
QTestCharBuffer is always forward declared as "struct".
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Don't use old-style casts in Qt code. And avoid signed/unsigned
comparisons (sizeof returns size_t, which is unsigned).
|
|
|
|
| |
Whoops, don't do sigaction for (nonexistent) signal 0.
|
|
|
|
|
|
| |
Feature define logic was wrong
Reviewed-by: Robert Griebl
|
| |
|
| |
|
|
|
|
|
|
| |
Don't try to write to files with special characters in the name.
Also fix bizarre indent.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-request: 604
Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
|
|
|
|
| |
Reviewed-by: Trust Me
|
|
|
|
| |
QTest::touchEvent().
|
|
|
|
|
|
|
|
|
| |
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).
|
|\ |
|
| |
| |
| |
| | |
Fixes the very frequently asked question "how do I see the full output?"
|
| | |
|
|\ \
| |/
| |
| |
| | |
Conflicts:
src/gui/graphicsview/qgraphicsscene_p.h
|
| |
| |
| |
| | |
Reviewed-by: Trust Me
|
| |\ |
|
| | |
| | |
| | |
| | | |
Reviewed-by: Trust Me
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | | |
how embarassing :/
|
| | |
| | |
| | |
| | | |
Need to move the extern declaration out of the QtTest namespace
|
| | | |
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
seem fixable easily)
Merge-request: 594
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
All Qt headers must have QT_BEGIN_HEADER, QT_END_HEADER and
QT_MODULE. These headers didn't have this.
Reviewed-by: TrustMe
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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.
|
|/ /
| |
| |
| | |
Modified it the same time to remove refcount and static variable.
|
| |
| |
| |
| |
| | |
used character operations whenever possible
better usage of QLatin1String
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|