summaryrefslogtreecommitdiffstats
path: root/tests/auto/exceptionsafety_objects
Commit message (Collapse)AuthorAgeFilesLines
* 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