Skip to content

Commit

Permalink
Reduce code duplication in GEOSInterrupTest
Browse files Browse the repository at this point in the history
References GA-1098
  • Loading branch information
strk committed May 21, 2024
1 parent 72a731a commit 55ac2f5
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions tests/unit/capi/GEOSInterruptTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 55ac2f5

Please sign in to comment.