Test: Support of parallel execution of reader tests (#18587)

* Tests: Initialize xerces sub-system in order to parse XML files

* Test: Support of parallel execution of reader tests

Fixes #18549
This commit is contained in:
wwmayer
2024-12-20 17:42:02 +01:00
committed by GitHub
parent 2ab0891e61
commit dd1419cd5f
3 changed files with 146 additions and 100 deletions

View File

@@ -4,6 +4,7 @@
#include <App/PropertyStandard.h>
#include <Base/Writer.h>
#include <Base/Reader.h>
#include <xercesc/util/PlatformUtils.hpp>
TEST(PropertyLink, TestSetValues)
{
@@ -17,7 +18,16 @@ TEST(PropertyLink, TestSetValues)
EXPECT_EQ(sub[1], "Sub2");
}
TEST(PropertyFloatTest, testWriteRead)
class PropertyFloatTest: public ::testing::Test
{
protected:
static void SetUpTestSuite()
{
XERCES_CPP_NAMESPACE::XMLPlatformUtils::Initialize();
}
};
TEST_F(PropertyFloatTest, testWriteRead)
{
#if defined(FC_OS_LINUX) || defined(FC_OS_BSD)
setlocale(LC_ALL, "");