You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mi...@apache.org on 2024/08/17 20:58:38 UTC
svn commit: r1919978 - /apr/apr/trunk/test/testldap.c
Author: minfrin
Date: Sat Aug 17 20:58:38 2024
New Revision: 1919978
URL: http://svn.apache.org/viewvc?rev=1919978&view=rev
Log:
Should apr_ldap_option_get fail, print the reason why. The reason
most likely relates to an inability to load the ldap module.
Modified:
apr/apr/trunk/test/testldap.c
Modified: apr/apr/trunk/test/testldap.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testldap.c?rev=1919978&r1=1919977&r2=1919978&view=diff
==============================================================================
--- apr/apr/trunk/test/testldap.c (original)
+++ apr/apr/trunk/test/testldap.c Sat Aug 17 20:58:38 2024
@@ -876,10 +876,17 @@ static void test_ldap_global_opts(abts_c
apr_ldap_opt_t opt;
apr_status_t status;
+ char errbuf[128];
+
apr_pool_create(&pool, p);
status = apr_ldap_option_get(pool, NULL, APR_LDAP_OPT_API_INFO, &opt, &err);
+ if (status != APR_SUCCESS) {
+ abts_log_message("apr_ldap_option_get: %s [%s]\n", err.reason,
+ apr_strerror(status, errbuf, sizeof(errbuf)));
+ }
+
ABTS_TRUE(tc, status == APR_SUCCESS);
ABTS_TRUE(tc, err.rc == 0);
ABTS_TRUE(tc, opt.info.vendor_name != NULL);