]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/strings/crt.cpp
compilation fix for ANSI build
[wxWidgets.git] / tests / strings / crt.cpp
index 8855068748b03d93295905aa76514954cf7cfd4b..8233a9e8a23ef0ca365ea29672528e7b42fa7537 100644 (file)
@@ -213,12 +213,6 @@ void CrtTestCase::Strpbrk()
 
 void CrtTestCase::Strnlen()
 {
-    // the following calls should not segfault/crash because when passing 0
-    // as maxlen, no bytes at all should be read from the given buffer
-    // (which is NULL in this case!)
-    CPPUNIT_ASSERT_EQUAL(  (size_t)0, wxStrnlen((const char*)NULL, 0) );
-    CPPUNIT_ASSERT_EQUAL(  (size_t)0, wxStrnlen((const wchar_t*)NULL, 0) );
-
     // other misc tests for wxStrnlen(const char*, size_t)
 
     CPPUNIT_ASSERT_EQUAL(  (size_t)0, wxStrnlen("", 0) );