svn commit: r1926400 - /apr/apr/trunk/test/testshm.c

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <[email protected]>
Author: ivan
Date: Fri Jun 13 21:00:21 2025
New Revision: 1926400

URL: http://svn.apache.org/viewvc?rev=1926400&view=rev
Log:
Follow-up to r1926399: Check for correct status variable in tests.

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

Modified: apr/apr/trunk/test/testshm.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testshm.c?rev=1926400&r1=1926399&r2=1926400&view=diff
==============================================================================
--- apr/apr/trunk/test/testshm.c (original)
+++ apr/apr/trunk/test/testshm.c Fri Jun 13 21:00:21 2025
@@ -225,7 +225,7 @@ static void test_named_remove(abts_case
     /* On some platforms (e.g. Windows), objects are alive until last handle
      * is closed. So detach from shared memory. */
     rv2 = apr_shm_detach(shm);
-    APR_ASSERT_SUCCESS(tc, "Error detach shared memory block", rv);
+    APR_ASSERT_SUCCESS(tc, "Error detach shared memory block", rv2);
 
     /* On platforms which acknowledge the removal of the shared resource,
      * ensure another of the same name may be created after removal;
@@ -268,7 +268,7 @@ static void test_named_delete(abts_case
     /* On some platforms (e.g. Windows), objects are alive until last handle
      * is closed. So detach from shared memory. */
     rv2 = apr_shm_detach(shm);
-    APR_ASSERT_SUCCESS(tc, "Error detach shared memory block", rv);
+    APR_ASSERT_SUCCESS(tc, "Error detach shared memory block", rv2);
 
     /* On platforms which acknowledge the removal of the shared resource,
      * ensure another of the same name may be created after removal;
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.