mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-21 07:45:01 +02:00

* fix(Foundation): tsan warnings fixes * fix(Thread_POSIX): tsan warnings fixes; add tsan.suppress * fix(Util): tsan fixes * fix(netSSL_OpenSSL): tsan fixes * fix(Data): tsan warnings fixes * feat(ci): add tsan job * feat(ci): add tsan job, another attempt * feat(ci): add tsan job, 3rd attempt * fix(Foundation): tsan warnings fixes * fix(Thread_POSIX): tsan warnings fixes; add tsan.suppress * fix(Util): tsan fixes * fix(netSSL_OpenSSL): tsan fixes * fix(Data): tsan warnings fixes * feat(ci): add tsan job * feat(ci): add tsan job, another attempt * feat(ci): add tsan job, 3rd attempt * fix(ResultMetadata): memory leak #3474 * feat(ci): disable ActiveDispatcher tests for tsan runs * feat(ci): try to fix tsan options file detection (again) * chore(TestLibrary: correct spelling * fix(ci): fix tsan run; add -y to apt; disable samples build for some jobs * fix(ci): add mysql ports * feat(ci): add VS asan * feat(double-conversion): Upgrade double-conversion to v3.2.0 #3624 * chore(asan): disable msvc asan build (dll not found) * chore(double-conversion): move NumericString.h before double-conversion includes to prevent min/max collision; reinstate lost loongarch64 * chore(JSON): sync pdjson with upstream * fix(Statement): Poco::Data::Statement becomes unusable after exception #2287
96 lines
1.0 KiB
C++
96 lines
1.0 KiB
C++
//
|
|
// TestLibrary.cpp
|
|
//
|
|
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "TestPlugin.h"
|
|
#include "Poco/ClassLibrary.h"
|
|
#include <iostream>
|
|
|
|
|
|
extern "C" int POCO_LIBRARY_API gimmeFive();
|
|
|
|
|
|
class PluginA: public TestPlugin
|
|
{
|
|
public:
|
|
PluginA()
|
|
{
|
|
}
|
|
|
|
~PluginA()
|
|
{
|
|
}
|
|
|
|
std::string name() const
|
|
{
|
|
return "PluginA";
|
|
}
|
|
};
|
|
|
|
|
|
class PluginB: public TestPlugin
|
|
{
|
|
public:
|
|
PluginB()
|
|
{
|
|
}
|
|
|
|
~PluginB()
|
|
{
|
|
}
|
|
|
|
std::string name() const
|
|
{
|
|
return "PluginB";
|
|
}
|
|
};
|
|
|
|
|
|
class PluginC: public TestPlugin
|
|
{
|
|
public:
|
|
PluginC()
|
|
{
|
|
}
|
|
|
|
~PluginC()
|
|
{
|
|
}
|
|
|
|
std::string name() const
|
|
{
|
|
return "PluginC";
|
|
}
|
|
};
|
|
|
|
|
|
POCO_BEGIN_MANIFEST(TestPlugin)
|
|
POCO_EXPORT_CLASS(PluginA)
|
|
POCO_EXPORT_CLASS(PluginB)
|
|
POCO_EXPORT_SINGLETON(PluginC)
|
|
POCO_END_MANIFEST
|
|
|
|
|
|
void pocoInitializeLibrary()
|
|
{
|
|
std::cout << "TestLibrary initializing" << std::endl;
|
|
}
|
|
|
|
|
|
void pocoUninitializeLibrary()
|
|
{
|
|
std::cout << "TestLibrary uninitializing" << std::endl;
|
|
}
|
|
|
|
|
|
int gimmeFive()
|
|
{
|
|
return 5;
|
|
}
|