apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r376824 - /apr/apr/branches/1.2.x/test/testuser.c
Date Fri, 10 Feb 2006 20:06:29 GMT
Author: wrowe
Date: Fri Feb 10 12:06:27 2006
New Revision: 376824

URL: http://svn.apache.org/viewcvs?rev=376824&view=rev
Log:

  Surrender to the state of 1.2.x and prior, and use !defined(WIN32)
  to determine uid/gid intregals in use.

Modified:
    apr/apr/branches/1.2.x/test/testuser.c

Modified: apr/apr/branches/1.2.x/test/testuser.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.2.x/test/testuser.c?rev=376824&r1=376823&r2=376824&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/test/testuser.c (original)
+++ apr/apr/branches/1.2.x/test/testuser.c Fri Feb 10 12:06:27 2006
@@ -94,7 +94,7 @@
                        apr_gid_compare(gid, retreived_gid));
 }
 
-#ifdef APR_UID_GID_NUMERIC
+#ifndef WIN32
 
 static void fail_userinfo(abts_case *tc, void *data)
 {
@@ -140,6 +140,11 @@
                 rv != APR_SUCCESS || tmp != NULL);
 }
 
+#else
+static void fail_userinfo(abts_case *tc, void *data)
+{
+    ABTS_NOT_IMPL(tc, "Users are not opaque integers on this platform");
+}
 #endif
 
 #else
@@ -159,9 +164,7 @@
     abts_run_test(suite, uid_current, NULL);
     abts_run_test(suite, username, NULL);
     abts_run_test(suite, groupname, NULL);
-#ifdef APR_UID_GID_NUMERIC
     abts_run_test(suite, fail_userinfo, NULL);
-#endif
 #endif
 
     return suite;



Mime
View raw message