[geos-commits] [SCM] GEOS branch main updated. 55ac2f51a02132ac05c5b78e153a94872c1b599e

git at osgeo.org git at osgeo.org
Tue May 21 11:21:51 PDT 2024


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main has been updated
       via  55ac2f51a02132ac05c5b78e153a94872c1b599e (commit)
      from  72a731ad7aab986f8f1b2b5074453685fc46343b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 55ac2f51a02132ac05c5b78e153a94872c1b599e
Author: Sandro Santilli <strk at kbt.io>
Date:   Tue May 21 20:20:10 2024 +0200

    Reduce code duplication in GEOSInterrupTest
    
    References GA-1098

diff --git a/tests/unit/capi/GEOSInterruptTest.cpp b/tests/unit/capi/GEOSInterruptTest.cpp
index 0bd030114..b54ef8d7f 100644
--- a/tests/unit/capi/GEOSInterruptTest.cpp
+++ b/tests/unit/capi/GEOSInterruptTest.cpp
@@ -10,37 +10,18 @@
 #include <cstdlib>
 #include <memory>
 
+#include "capi_test_utils.h"
+
 namespace tut {
 //
 // Test Group
 //
 
 // Common data used in test cases.
-struct test_capiinterrupt_data {
+struct test_capiinterrupt_data : public capitest::utility {
     static int numcalls;
     static GEOSInterruptCallback* nextcb;
 
-    static void
-    notice(const char* fmt, ...)
-    {
-        std::fprintf(stdout, "NOTICE: ");
-
-        va_list ap;
-        va_start(ap, fmt);
-        std::vfprintf(stdout, fmt, ap);
-        va_end(ap);
-
-        std::fprintf(stdout, "\n");
-    }
-
-    test_capiinterrupt_data()
-    {
-    }
-
-    ~test_capiinterrupt_data()
-    {
-    }
-
     static void
     interruptNow()
     {

-----------------------------------------------------------------------

Summary of changes:
 tests/unit/capi/GEOSInterruptTest.cpp | 25 +++----------------------
 1 file changed, 3 insertions(+), 22 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list