wxwidgets/tests
Vadim Zeitlin d1b5fd27aa Enable long path normalization test by default
It seems that the default value of NtfsDisable8dot3NameCreation registry
value is 2, and not 0, since a very long time (at least Windows 7), so
the wxPATH_NORM_LONG test was never actually executed.

Change the check guarding it to check if the value of the key is
different from 1 instead of checking that it is 0, as the test can still
succeed on the systems where this is the case.

Of course, it can also fail, if short names are disabled for the current
volume, but let's see if this is a problem in practice before doing
something more complicated to deal with this case.
2021-12-10 17:27:06 +01:00
..
any Fix list contents memory leak in wxAny unit test 2020-10-19 13:54:19 +02:00
archive Remove unnecessary c_str() from wx var arg functions arguments 2021-07-04 15:08:13 +01:00
arrays Implement wxCmpNatural() using the native function under macOS 2021-08-25 01:00:24 +02:00
base64 Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
benchmarks Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
cmdline Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
config Compile wxConfig unit tests as part of non-GUI test too 2021-03-13 15:15:40 +01:00
controls Add tests for wxWebView::RunScriptAsync() 2021-11-03 14:04:24 +01:00
datetime Extract wxLocaleSetter from the tests into a private header 2021-08-07 18:04:22 +02:00
drawing Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
events Make Connect() work with overloaded event handlers in C++17 2020-11-21 20:52:13 +01:00
exec Make wxExecute() unit test work when using Wine too 2021-07-03 16:45:15 +02:00
file Use native CATCH macros in wxDir unit test 2021-08-22 21:35:14 +02:00
filekind Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
filename Enable long path normalization test by default 2021-12-10 17:27:06 +01:00
filesys Fix wxMemoryFSHandler memory leaks in wxFileSystem unit test 2020-10-19 13:54:19 +02:00
font Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
fontmap Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
formatconverter Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
fswatcher Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
fuzz Fix harmless warning about multiline comment in fuzzer runner 2020-05-02 03:38:28 +02:00
geometry Add operator/(wxSize, double) 2021-11-20 22:06:28 +01:00
graphics Add wxBitmapBundle::FromSVGFile() helper 2021-11-29 12:55:22 +00:00
hashes Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
html Fix memory leaks in wxHtmlParser unit test 2020-10-19 13:54:19 +02:00
image Avoid integer overflow when computing image data size in wxImage::Create() 2021-11-27 17:14:28 -08:00
interactive Implement wxFSVolume for macOS 2021-12-01 23:35:19 +01:00
intl Add a pseudo-test for interactive wxUILocale::FromTag() testing 2021-09-05 00:10:05 +01:00
lists Add unit test for wxWindowList::Find() 2021-09-22 18:07:08 +02:00
log Really support milliseconds in wxLog 2021-01-15 14:55:06 +01:00
longlong Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
mbconv Extract wxLocaleSetter from the tests into a private header 2021-08-07 18:04:22 +02:00
menu Simplify checking for menu events in the unit test 2021-11-16 20:34:19 +01:00
misc Make wxDumpWindow() public and available in wxMSW too 2021-10-20 23:35:37 +01:00
net Ignore error in another wxWebRequest test under AppVeyor 2021-08-05 23:42:53 +01:00
persistence Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
regex Skip wxRegEx tests requiring Unicode support if wxUSE_UNICODE=0 2021-07-24 19:17:59 +02:00
rowheightcache Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
scopeguard Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
sizers Don't change orthogonal alignment in wxSizerFlags::CenterXXX() 2021-01-25 12:58:04 +01:00
streams Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
strings Extract wxLocaleSetter from the tests into a private header 2021-08-07 18:04:22 +02:00
textfile Remove checks for LXC containers used under Travis CI only 2021-07-15 19:55:01 +02:00
thread Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
toplevel Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
uris Skip URL test if it fails when running on AppVeyor 2020-12-04 19:29:59 +01:00
validators Add wxIntegerValidatorctor ctor taking minimum and maximum value 2021-12-09 19:55:44 +01:00
vectors Add trivial wxVectorContains() helper 2020-11-16 16:48:47 +01:00
weakref Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
window Add test of setting size of the window client area 2021-08-08 21:42:38 +02:00
xlocale Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
xml Document and test that bitmap paths in XRC are percent-encoded 2021-04-15 19:20:32 +01:00
allheaders.cpp Predefine __USE_W32_SOCKETS for Cygwin in allheaders test 2021-06-15 16:44:24 +01:00
allheaders.h Add wxPersistentComboBox for saving and restoring combobox items 2020-11-19 13:06:37 +01:00
asserthelper.cpp Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
asserthelper.h Move operator<<(std::ostream&, wxRect) overload to a header 2018-11-04 18:28:33 +01:00
descrip.mms workaround for which is probably a compiler-bug on OpenVMS-AXP 2021-01-07 09:47:46 +01:00
dummy.cpp
horse.ani
horse.bmp
horse.cur
horse.gif
horse.ico
horse.jpg
horse.pcx
horse.png
horse.pnm
horse.svg Add wxBitmapBundle::FromSVGFile() helper 2021-11-29 12:55:22 +00:00
horse.tga
horse.tif
horse.xpm Convert all XPM files to Unix EOLs. 2015-03-19 21:46:05 +01:00
makefile.gcc Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
Makefile.in Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
makefile.vc Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
README.md Explain how to build the tests 2021-11-12 14:21:41 +01:00
runtests.bat Don't use "-t" option when running tests any longer 2017-11-02 01:53:29 +01:00
test.bkl Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
test.cpp Stop showing locale in the beginning of the unit test 2021-08-24 23:05:25 +02:00
test.vcxproj Link with ws2_32.lib rather than obsolete wsock32.lib 2021-04-18 22:13:45 +02:00
test.vcxproj.filters Mark MSVS *.vcxproj.filters files as using CR LF as well 2021-11-24 12:13:12 +01:00
test_gui.vcxproj Add a simple wxBitmapBundle unit test 2021-10-05 15:49:43 +01:00
test_gui.vcxproj.filters Mark MSVS *.vcxproj.filters files as using CR LF as well 2021-11-24 12:13:12 +01:00
test_gui_vc10.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc11.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc12.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc14.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc15.sln Update test sln and vcxproj files 2019-11-30 23:24:54 +01:00
test_gui_vc16.sln Add MSVS 2019 solutions for the minimal sample and the tests 2021-08-24 17:12:06 +02:00
test_vc8_test.vcproj Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
test_vc8_test_allheaders.vcproj Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
test_vc8_test_drawing.vcproj Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
test_vc8_test_drawingplugin.vcproj Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
test_vc8_test_gui.vcproj Add a simple wxBitmapBundle unit test 2021-10-05 15:49:43 +01:00
test_vc9_test.vcproj Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
test_vc9_test_allheaders.vcproj Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
test_vc9_test_drawing.vcproj Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
test_vc9_test_drawingplugin.vcproj Use arch suffix consistently in all directories names 2021-08-26 23:12:40 +02:00
test_vc9_test_gui.vcproj Add a simple wxBitmapBundle unit test 2021-10-05 15:49:43 +01: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_vc16.sln Add MSVS 2019 solutions for the minimal sample and the tests 2021-08-24 17:12:06 +02:00
testableframe.cpp Remove BCC-specific hdrstop pragma from everywhere 2020-10-12 21:58:37 +02:00
testableframe.h Refactor code waiting for events in the test suite 2019-01-24 22:52:46 +01:00
testdata.conf Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01: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 Account for different size in bitmap from cursor test 2021-04-10 15:26:10 +02:00
testprec.h Merge branch 'ui-locale' 2021-08-26 15:49:57 +02:00
testwindow.h Make it simpler to write useful tests comparing windows 2020-09-21 15:54:42 +02:00
waitforpaint.h Simplify WaitForPaint::YieldUntilPainted() 2021-01-31 01:33:30 +01:00

Tests

This directory contains tests for the library and is mostly useful for the library developers. See the samples subdirectory for the examples that are more useful to the application developers using the library.

If you do work on the library itself and would like to modify an existing or add a new test, please see docs/contributing/how-to-write-unit-tests.md for more information.

This file also contains the instructions for running the tests if you'd just like to do it to confirm that the library works correctly.