summaryrefslogtreecommitdiffstats
path: root/tests/auto/exceptionsafety_objects
Commit message (Collapse)AuthorAgeFilesLines
* test: Mark tst_ExceptionSafety_Objects::objects() as QSKIPSergio Ahumada2012-11-132-1/+4
| | | | | | | | | This test is crashing so marking it as QSKIP. Task-number: QTBUG-18927 Change-Id: Iba6e6f556793747f09d2a8fa6af5c9169a53dfe9 Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Janne Anttila <janne.anttila@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-292-48/+48
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I280c0a575987d1770e354b4948f1d4d767d711ea Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Update contact information in license headers.Sergio Ahumada2012-08-012-4/+4
| | | | | | | | | | | | | - Replace Nokia contact email address with Qt Project website. - Remove "All rights reserved" line from license headers. As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie7ba62011752fcb149b99b26317c54f2a0cfa931 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Update year in Nokia copyright messages.Jason McDonald2012-01-112-2/+2
| | | | | | | | | Simple search and replace. This commit doesn't touch 3rd-party files, nor translations (where the change is not so simple and will be handled in a separate commit). Change-Id: I4e48513b8078a44a8cd272326685b25338890148 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* tests: eliminated usage of qttest_p4.prf [part 3]Sergio Ahumada2011-12-291-2/+5
| | | | | | | | | qttest_p4.prf was added as a convenience for Qt's own autotests in Qt4. It enables various crufty undocumented magic, of dubious value. Stop using it, and explicitly enable the things from it which we want. Change-Id: I65ba34a59db7aa15bc6304e690c825a4d6cd1037 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* tests: allow unstable tests to be marked with CONFIG+=insignificant_testSergio Ahumada2011-12-281-0/+2
| | | | | | | | | | Marking a test with CONFIG+=insignificant_test will cause the exit code of the test to be discarded during `make check'. This is intended to be used for tests which are valuable to run, but are known to be unstable and are not feasible to immediately fix. Change-Id: Id7b2407d0a13c8de19a58badb78fa7c018c9b50a Reviewed-by: Jo Asplin
* Merge remote-tracking branch 'qt/4.8'Jyri Tahtela2011-05-181-38/+84
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/examples/wheel.qdoc src/gui/util/qflickgesture.cpp src/gui/util/qflickgesture_p.h src/gui/util/qscroller.cpp src/gui/util/qscroller.h src/gui/util/qscroller_p.h src/gui/util/qscrollerproperties.cpp src/gui/util/qscrollerproperties.h tests/auto/qscroller/tst_qscroller.cpp
| * Remove Q_ASSERT's from exceptionsafety_objects testJason McDonald2011-05-051-3/+6
| | | | | | | | | | | | | | | | Report a fatal error in all builds, not just in debug builds. Change-Id: Iad990e2d3b29a55e995254d466e967a4a722bb23 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
| * Cosmetic changes to exceptionsafety_objects testJason McDonald2011-04-181-18/+15
| | | | | | | | | | | | | | Sort test data alphabetically and remove excess whitespace. Change-Id: I0e244efca9e9adbe747a375a28a63f70992ef4f8 Reviewed-by: Trust Me
| * Partially re-enable exception safety testJason McDonald2011-04-181-2/+44
| | | | | | | | | | | | | | Re-enabling for object types that don't crash the test. Change-Id: I8c2f0d02171c973bf1ede227d4139b52cac5939f Reviewed-by: Rohan McGovern
| * Make test compile in namespaced build.Jason McDonald2011-04-181-0/+2
| | | | | | | | | | Change-Id: I824864b8db755a8dc731e3c9de39e3dd7b16224a Reviewed-by: Rohan McGovern
| * Rename test class.Jason McDonald2011-04-181-16/+16
| | | | | | | | | | | | | | | | Fixes warning from tst_maketestselftest about test class name not matching TARGET. Change-Id: I7a81d87bb64d2902e842d097248e33eacb388746 Reviewed-by: Rohan McGovern
| * Make tst_exceptionsafety_objects part of the test set.Jason McDonald2011-04-151-0/+2
| | | | | | | | | | | | | | | | Re-enable this test, with the two test functions that fail on Linux disabled until the failures can be diagnosed. Change-Id: I915e1a0d675cb71a80086e89f9799a4f9f6b600c Reviewed-by: Rohan McGovern
| * Update copyright year to 2011.Jason McDonald2011-01-102-2/+2
| | | | | | | | Reviewed-by: Trust Me
* | Update licenseheader text in source files for qt4.8Jyri Tahtela2011-05-132-34/+34
| | | | | | | | | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* | Update copyright year to 2011.Jason McDonald2011-01-102-2/+2
|/ | | | Reviewed-by: Trust Me
* QTBUG-4887 and other exception safety fixesmread2010-04-071-0/+19
| | | | | | | | | | | | | | | | | | | | This change includes a fix for QTBUG-4887 and other exception safety problems found while testing it. The QTBUG-4887 fix is to qimage.cpp. QImage doesn't throw exceptions on failure like a proper class should, instead it tries to fail "nice". What happens here is that setAlphaChannel would crash on OOM as after the convertToFormat call, d could be NULL. This new version checks the result of the conversion before using it. The other fixes are all cases where exceptions were thrown from destructors. I added code to the test app to help debug these cases, and I fixed all the problems I found. With these changes, tst_exceptionsafety_objects runs and passes on the Symbian emulator. Reviewed-by: Shane Kearns
* Update copyright year to 2010Jason McDonald2010-01-062-2/+2
| | | | Reviewed-by: Trust Me
* Make exception safety test work with XML output and warningsmread2009-09-101-2/+26
| | | | | | | | | | The QTestLib XML output system throws exceptions when the system is out of memory, which is normally quite reasonable. However when it is used to report warnings during a catch block, this terminates the program. So this change temporarily disables allocation failures while the warning is being recorded. Reviewed-by: Jason Barron
* Getting text widget OOM tests working in Symbianmread2009-09-091-4/+8
| | | | | | | | | | | | | | There is one actual bug fix, checking for null pointer return. The exception safety test code now initialises the fonts system. The S60 fonts system does not survive OOM testing without this. Otherwise some duplicate tests are removed and code tidied up. Reviewed-by: Liang Qi Reviewed-by: Harald Fernengel Reviewed-by: Alessandro Portale
* Update license headers again.Jason McDonald2009-09-092-8/+8
| | | | Reviewed-by: Trust Me
* exception safety fix for QList::operator+= (const QList&)mread2009-09-081-25/+92
| | | | | | | | | | | | | | | | The refactoring of current++ and src++ out of the new line makes the code easier to understand but it also seems to be significant at least in the ::isComplex case. I suspect that the ordering increment operations vs throw from new is not well defined, or not implemented as you might hope (with the ++ happening very last). The changes in the catch blocks mean that it deletes the created objects, rather than trying with the first failed object. The test code has been updated with a +=(Container) test, and to force testing of both static and moveable types. Reviewed-by: Harald Fernengel
* Symbian OOM testing extended to release buildsmread2009-09-021-5/+76
| | | | | | | | | | | The RHeap test functions, such as enabled by the __UHEAP macros, are only enabled for debug builds. This change puts a wrapper allocator in place which replicates the debug functions in all builds. This should allow the exceptionsafety_objects autotest to progress further on Symbian release builds. Reviewed-by: axis
* Update tech preview license header for files that are new in 4.6.Jason McDonald2009-08-312-26/+26
| | | | Reviewed-by: Trust Me
* Remove commented line.Frans Englich2009-08-191-1/+0
|
* Changed names and URLs to reflect name change.axis2009-08-192-2/+2
| | | | RevBy: Trust me
* disabled exceptions safety tests for Symbian 3.x as they always fail due to ↵mread2009-08-181-1/+2
| | | | missing thowing new
* QVector::insert is currently not strongly exception safeHarald Fernengel2009-08-071-1/+3
|
* Update license headers according to commit 858c70f768e.axis2009-08-062-4/+4
| | | | RevBy: Trust me
* refactor a bit, and add container testingHarald Fernengel2009-08-051-34/+272
|
* deleteing test objects for improved memory leak tracking. added test start ↵mread2009-08-041-5/+11
| | | | parameter for easier tweaking
* Squashed commit of the topic/exceptions branch.Harald Fernengel2009-08-032-77/+338
| | | | | Contains some smaller fixes and renaming of macros. Looks big, but isn't scary at all ;)
* major rewrite - make it valgrind friendlyHarald Fernengel2009-06-165-74/+4379
|
* add object exception test as wellHarald Fernengel2009-06-161-9/+53
|
* add an out of memory checkerHarald Fernengel2009-06-163-0/+327