apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r376501 - /apr/apr/branches/1.2.x/test/testuser.c
Date Fri, 10 Feb 2006 00:10:01 GMT
Author: wrowe
Date: Thu Feb  9 16:09:59 2006
New Revision: 376501

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

  This test can't be portably implemented until we define a symbol
  to declare that apr_[ug]id_t is intregal, as opposed to the current
  opaque definition on Win32.

Backports 376409

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=376501&r1=376500&r2=376501&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/test/testuser.c (original)
+++ apr/apr/branches/1.2.x/test/testuser.c Thu Feb  9 16:09:59 2006
@@ -94,6 +94,8 @@
                        apr_gid_compare(gid, retreived_gid));
 }
 
+#ifdef APR_UID_GID_NUMERIC
+
 static void fail_userinfo(abts_case *tc, void *data)
 {
     apr_uid_t uid;
@@ -138,6 +140,8 @@
                 rv != APR_SUCCESS || tmp != NULL);
 }
 
+#endif
+
 #else
 static void users_not_impl(abts_case *tc, void *data)
 {
@@ -155,7 +159,9 @@
     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