svn commit: r1924402 - /apr/apr-util/branches/1.7.x/test/testmemcache.c

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <[email protected]>
Author: minfrin
Date: Sat Mar 15 13:05:15 2025
New Revision: 1924402

URL: http://svn.apache.org/viewvc?rev=1924402&view=rev
Log:
testmemcache: Skip test if memcachedmock was not built.

Modified:
    apr/apr-util/branches/1.7.x/test/testmemcache.c

Modified: apr/apr-util/branches/1.7.x/test/testmemcache.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/test/testmemcache.c?rev=1924402&r1=1924401&r2=1924402&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/test/testmemcache.c (original)
+++ apr/apr-util/branches/1.7.x/test/testmemcache.c Sat Mar 15 13:05:15 2025
@@ -699,7 +699,14 @@ static void test_connection_validation(a
     args[1] = NULL;
     rv = apr_proc_create(&proc, TESTBINPATH "memcachedmock" EXTENSION, args, NULL,
                          procattr, p);
-    ABTS_ASSERT(tc, "Couldn't launch program", rv == APR_SUCCESS);
+
+    if (APR_SUCCESS != rv) {
+        char errbuf[128];
+        abts_log_message(TESTBINPATH "memcachedmock" EXTENSION " could not be executed: %s",
+                         apr_strerror(rv, errbuf, sizeof(errbuf)));
+        ABTS_SKIP(tc, data, TESTBINPATH "memcachedmock" EXTENSION " could not be executed, skipped");
+        return;
+    }
 
     /* Wait for the mock memcached to start */
     apr_sleep(apr_time_from_sec(2));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.