Author: vitek Date: Mon Apr 14 18:42:48 2008 New Revision: 648090 URL: http://svn.apache.org/viewvc?rev=648090&view=rev Log: 2008-04-14 Travis Vitek <[EMAIL PROTECTED]>
STDCXX-857 * tests/self/0.printf.cpp (test_reallocate): Revert test for changes added in r647908. Modified: stdcxx/trunk/tests/self/0.printf.cpp Modified: stdcxx/trunk/tests/self/0.printf.cpp URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/self/0.printf.cpp?rev=648090&r1=648089&r2=648090&view=diff ============================================================================== --- stdcxx/trunk/tests/self/0.printf.cpp (original) +++ stdcxx/trunk/tests/self/0.printf.cpp Mon Apr 14 18:42:48 2008 @@ -3279,38 +3279,6 @@ /***********************************************************************/ -static void -test_reallocate () -{ - static const char abc[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - - char buffer [4] = { 0 }; - char *buf = buffer; - - size_t bufsize = sizeof buffer; - - const int n = rw_asnprintf (&buf, &bufsize, "%s", abc); - - if (n != 26 || strcmp (abc, buf)) { - ++nfailures; - - fprintf (stderr, "# Assertion failed on line %d: " - "rw_asnprintf(...) == \"%s\", got \"%s\"\n", - __LINE__, abc, buf); - } - - if (buf != buffer) - free (buf); - else { - ++nfailures; - - fprintf (stderr, "# Assertion failed on line %d: " - "rw_asnprintf(...) failed to reallocate buffer\n", - __LINE__); - } -} - - int main () { test_percent (); @@ -3358,8 +3326,6 @@ test_nested_format (); test_malformed_directives (); - - test_reallocate (); ////////////////////////////////////////////////////////////////// if (nfailures) {