]> git.saurik.com Git - wxWidgets.git/commit - tests/file/filetest.cpp
Disable tests for UTF-encoded files in FileTestCase in ANSI build.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 16 Oct 2010 23:05:20 +0000 (23:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 16 Oct 2010 23:05:20 +0000 (23:05 +0000)
commita9f3fb07a0fd25c4769e92a7b871f497ef523a07
tree8c6e7a6401bc57a152f12c6ab3a8e2e60d9d30d9
parentb37e255c36ad5d41ecd0546f0783ec0fbd95e5cf
Disable tests for UTF-encoded files in FileTestCase in ANSI build.

These tests didn't work correctly in ANSI build because the conversion
parameter of wxFile::Write() isn't used there, the contents of an ANSI
wxString is always written to the file as is -- hence reading it back using
UTF-16 or UTF-32 conversion fails.

The test would need to be totally rewritten for ANSI build of wx and it
wouldn't test wxFile but rather conversion functions already tested elsewhere
so just disable it instead.

This fixes a crash (due to passing NULL pointer to memcmp()) which prevented
the test suite from running to completion in ANSI build.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
tests/file/filetest.cpp