apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r482414 - /apr/apr/trunk/test/teststr.c
Date Mon, 04 Dec 2006 23:40:18 GMT
Author: pquerna
Date: Mon Dec  4 15:40:17 2006
New Revision: 482414

URL: http://svn.apache.org/viewvc?view=rev&rev=482414
Log:
Revert r481731, which didn't really test the right thing, and testfmt.c already had a test
case for this.

Modified:
    apr/apr/trunk/test/teststr.c

Modified: apr/apr/trunk/test/teststr.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/teststr.c?view=diff&rev=482414&r1=482413&r2=482414
==============================================================================
--- apr/apr/trunk/test/teststr.c (original)
+++ apr/apr/trunk/test/teststr.c Mon Dec  4 15:40:17 2006
@@ -120,18 +120,6 @@
     ABTS_INT_EQUAL(tc, 6, rv);
 }
 
-static void snprintf_status_t(abts_case *tc, void *data)
-{
-    char buf[128];
-    int rv;
-    apr_status_t t = APR_ENOPOOL;
-
-    rv = apr_snprintf(buf, sizeof buf, "%pm", t);
-
-    ABTS_INT_EQUAL(tc,  32, rv);
-    ABTS_STR_EQUAL(tc, "A new pool could not be created.", buf);
-}     
-
 static void snprintf_0nonNULL(abts_case *tc, void *data)
 {
     int rv;
@@ -173,7 +161,7 @@
      rv = apr_strerror(APR_TIMEUP, buf, sizeof buf);
      ABTS_PTR_EQUAL(tc, buf, rv);
      ABTS_STR_EQUAL(tc, "The timeout specified has expired", buf);
-
+     
      /* throw some randomish numbers at it to check for robustness */
      for (n = 1; n < 1000000; n *= 2) {
          apr_strerror(n, buf, sizeof buf);
@@ -399,7 +387,6 @@
 {
     suite = ADD_SUITE(suite)
 
-    abts_run_test(suite, snprintf_status_t, NULL);
     abts_run_test(suite, snprintf_0NULL, NULL);
     abts_run_test(suite, snprintf_0nonNULL, NULL);
     abts_run_test(suite, snprintf_noNULL, NULL);



Mime
View raw message