wxWidgets/tests
Graham Dawes db15e99884 Fix wxBitmap::GetRawData() in wxQt
This method used to return a dangling pointer to a temporary buffer,
which resulted in a crash when using it, e.g. in the unit test.

Fix this by keeping a QImage as a member in wxBitmapRefData, so that the
pointer to its data remain valid until UngetRawData() is called.

Also check that GetRawData() returns a non-null pointer in the test.

Closes https://github.com/wxWidgets/wxWidgets/pull/1067
2018-12-13 15:24:54 +01:00
..
any Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
archive Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
arrays Fix using WX_DECLARE_OBJARRAY() with pointer types 2018-07-15 14:48:08 +02:00
base64 Fix harmless warning in Base64 unit test 2017-12-09 14:15:37 +01:00
benchmarks Increment version number to 3.1.3 2018-12-10 19:06:18 +01:00
cmdline Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
config Fix harmless signed/unsigned comparison warnings in a test 2017-11-02 01:53:21 +01:00
controls Fix use of dangling pointer in ButtonTestCase::Disabled() 2018-12-13 00:39:25 +01:00
datetime Simplify wxDateTime ticks test by only using UTC times 2017-12-02 14:38:45 +01:00
drawing Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
events Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
exec Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
file Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
filekind Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
filename Fix build without precompiled headers 2018-11-26 23:51:40 +01:00
filesys Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
font Add simple unit tests for the new wxFont features 2018-09-17 15:24:42 +02:00
fontmap Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
formatconverter Fix FormatConverterTestCase for MinGW and Cygwin 2017-11-25 11:13:02 +01:00
fswatcher Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
fuzz Add a helper for running fuzz function with a single input 2017-10-28 15:12:14 +02:00
geometry Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
graphics Fix wxBitmap::GetRawData() in wxQt 2018-12-13 15:24:54 +01:00
hashes Don't use gcc 4.8 workaround in the hash test with clang 2017-03-11 03:37:07 +01:00
html Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
image Add guards around test cases 2018-09-19 22:01:17 +02:00
interactive Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
intl Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
lists Make wxList iterators conform to input iterator requirements 2018-02-23 16:00:06 +01:00
log Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
longlong Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
mbconv Correct UTF-8 encoding of U+FFFF 2018-01-29 00:48:56 +01:00
menu Restore menu tests, excluding QT where appropriate. 2018-11-22 22:32:08 +00:00
misc Fix some build warnings 2018-11-25 21:29:38 +01:00
net Replace remaining std::auto_ptr<> with wxScopedPtr in the tests 2017-11-14 00:06:18 +01:00
persistence Fix saving/restoring window position for maximized windows 2018-04-29 20:35:44 +02:00
regex Fix unannotated fall-through warnings 2018-11-25 21:29:37 +01:00
scopeguard Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
sizers Suppress harmless gcc missing initializers warnings in a test 2018-12-12 23:45:09 +01:00
streams Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
strings Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
textfile Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
thread Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
toplevel Enable running TLW activation unit tests in CI environments 2018-06-22 02:44:40 +02:00
uris Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
validators Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
vectors Make wxVector::reverse_iterator satisfy RandomAccessIterator 2018-12-07 14:52:51 +01:00
weakref Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
window Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
xlocale Check for wxXLocale availability without using wxLocale 2017-12-09 14:17:34 +01:00
xml Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
asserthelper.cpp Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
asserthelper.h Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
descrip.mms Update OpenVMS makefile for change from cppunit to catch 2017-11-30 12:23:02 +01:00
dummy.cpp Empty line at the end. 2004-11-22 15:12:29 +00:00
horse.ani add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.bmp add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.cur add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.gif add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.ico add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.jpg add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.pcx add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.png add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.pnm add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.tga add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.tif add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.xpm Convert all XPM files to Unix EOLs. 2015-03-19 21:46:05 +01:00
makefile.bcc Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
makefile.gcc Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
Makefile.in Increment version number to 3.1.3 2018-12-10 19:06:18 +01:00
makefile.vc Introduce MSW ARM64 support 2018-09-17 22:34:32 +02:00
runtests.bat Don't use "-t" option when running tests any longer 2017-11-02 01:53:29 +01:00
test_gui_vc10.sln Remove references to "adv" library from MSVS 201x test projects 2018-09-13 20:56:54 +02:00
test_gui_vc11.sln Remove references to "adv" library from MSVS 201x test projects 2018-09-13 20:56:54 +02:00
test_gui_vc12.sln Remove references to "adv" library from MSVS 201x test projects 2018-09-13 20:56:54 +02:00
test_gui_vc14.sln Remove references to "adv" library from MSVS 201x test projects 2018-09-13 20:56:54 +02:00
test_gui_vc15.sln Remove references to "adv" library from MSVS 201x test projects 2018-09-13 20:56:54 +02:00
test_gui.vcxproj Remove references to "adv" library from MSVS 201x test projects 2018-09-13 20:56:54 +02:00
test_gui.vcxproj.filters Add unit test for current point of wxGraphicsPath 2018-07-02 20:08:30 +02:00
test_vc7_test_drawing.vcproj Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
test_vc7_test_drawingplugin.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
test_vc7_test_gui.vcproj Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
test_vc7_test.vcproj Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
test_vc8_test_drawing.vcproj Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
test_vc8_test_drawingplugin.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
test_vc8_test_gui.vcproj Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
test_vc8_test.vcproj Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
test_vc9_test_drawing.vcproj Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
test_vc9_test_drawingplugin.vcproj Update to bakefile 0.2.11 and rebake everything 2017-10-21 17:42:30 +02:00
test_vc9_test_gui.vcproj Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
test_vc9_test.vcproj Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
test_vc10.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc11.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc12.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc14.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test_vc15.sln Enable building the unit tests for x64 in MSVS solutions 2017-11-25 11:13:02 +01:00
test.bkl Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
test.cpp Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
test.vcxproj Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
test.vcxproj.filters Add unit test for wxLZMA{Input,Output}Stream classes 2018-04-06 15:39:55 +02:00
testableframe.cpp Show wxTestableFrame from its ctor 2016-02-27 02:41:18 +01:00
testableframe.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
testdata.fc moved Unicode tests to testsuite (patch 943945) 2004-04-30 20:26:14 +00:00
testdate.h Include testdate.h before catch.hpp in unit tests 2017-12-02 14:38:19 +01:00
testfile.h Factor out TempFile class and reuse it in other tests 2017-11-05 17:28:24 +01:00
testimage.h Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
testprec.h Fix printf tests for recent MinGW versions 2018-08-02 21:10:20 +02:00