stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r648090 - /stdcxx/trunk/tests/self/0.printf.cpp
Date Tue, 15 Apr 2008 01:42:55 GMT
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  <vitek@roguewave.com>

	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) {



Mime
View raw message