X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ftests_basis%2Ftest_string.cpp;h=0eddf073e406a7c48f94b37c52eb76b544e92046;hb=ea399ea4e4135ab47c931e5c3adaece7d0cf9ec3;hp=a4263ba4073efb712020d87d850fafa1053161e3;hpb=51d71c226be424b6a698c7474d237e8c69661af5;p=feisty_meow.git diff --git a/nucleus/library/tests_basis/test_string.cpp b/nucleus/library/tests_basis/test_string.cpp index a4263ba4..0eddf073 100644 --- a/nucleus/library/tests_basis/test_string.cpp +++ b/nucleus/library/tests_basis/test_string.cpp @@ -33,9 +33,9 @@ #include #include -#ifdef __WIN32__ - #include -#endif +//#ifdef _MSC_VER +// #include +//#endif #include #include #include @@ -184,8 +184,8 @@ void test_string::run_test_02() *fred3 += *fred2; // testing adding a null to a string. - *fred2 += (char *)NIL; - *fred3 += (char *)NIL; + *fred2 += (char *)NULL_POINTER; + *fred3 += (char *)NULL_POINTER; #ifdef DEBUG_STRING_TEST LOG(astring("[ ") + *fred1 + " & " + *fred2 + "] -> " + *fred3); @@ -775,6 +775,7 @@ void test_string::run_test_23() void test_string::run_test_24() { FUNCDEF("run_test_24"); +#ifndef __GNU_WINDOWS__ #ifdef __WIN32__ // 24th test group tests _bstr_t conversions. _bstr_t beast("abcdefgh"); @@ -793,6 +794,7 @@ void test_string::run_test_24() _bstr_t pork = string_convert::to_bstr_t(jethro); ASSERT_FALSE(strcmp(pork.operator char *(), jethro.s()), "second test failed comparison"); #endif +#endif } void test_string::run_test_25()