connection between 2 systems and bug fixes (#14)

This commit is contained in:
tompzf
2026-07-03 14:53:48 +02:00
committed by GitHub
parent 0fb5660d27
commit 46842200f1
284 changed files with 35200 additions and 8265 deletions

View File

@@ -283,7 +283,7 @@ TEST(CoreLoaderTest, EnvVarLoading)
EXPECT_EQ(executor.Execute(), 1);
}
TEST(CoreLoaderTest, CfgFileLoadingRel)
TEST(CoreLoaderTest, CoreRelocFileLoadingRel)
{
CTestExecute executor;
@@ -291,14 +291,17 @@ TEST(CoreLoaderTest, CfgFileLoadingRel)
fstream << R"cfg(# Some bogus information
unknown_var = 2
[CoreLocation]
Version = 100
# Core library path
directory = "../../../bin")cfg";
Runtime = "../../../bin")cfg";
fstream.close();
EXPECT_EQ(executor.Execute(), 1);
}
TEST(CoreLoaderTest, CfgFileLoadingAbs)
TEST(CoreLoaderTest, CoreRelocFileLoadingAbs)
{
CTestExecute executor;
@@ -306,15 +309,18 @@ TEST(CoreLoaderTest, CfgFileLoadingAbs)
fstream << R"cfg(# Some bogus information
unknown_var = 2
[CoreLocation]
Version = 100
# Core library path
directory = ")cfg" << (executor.GetExeDir() / "../../../bin").lexically_normal().generic_string() << "\"";
Runtime = ")cfg" << (executor.GetExeDir() / "../../../bin").lexically_normal().generic_string() << "\"";
fstream.close();
EXPECT_EQ(executor.Execute(), 1);
}
#ifdef _WIN32
TEST(CoreLoaderTest, CfgFileLoadingRelWin)
TEST(CoreLoaderTest, CoreRelocFileLoadingRelWin)
{
CTestExecute executor;
@@ -322,14 +328,17 @@ TEST(CoreLoaderTest, CfgFileLoadingRelWin)
fstream << R"cfg(# Some bogus information
unknown_var = 2
[CoreLocation]
Version = 100
# Core library path
directory = "..\\..\\..\\bin")cfg";
Runtime = "..\\..\\..\\bin")cfg";
fstream.close();
EXPECT_EQ(executor.Execute(), 1);
}
TEST(CoreLoaderTest, CfgFileLoadingAbsWin)
TEST(CoreLoaderTest, CoreRelocFileLoadingAbsWin)
{
CTestExecute executor;
@@ -352,8 +361,11 @@ TEST(CoreLoaderTest, CfgFileLoadingAbsWin)
fstream << R"cfg(# Some bogus information
unknown_var = 2
[CoreLocation]
Version = 100
# Core library path
directory = ")cfg" << ssDir << "\"";
Runtime = ")cfg" << ssDir << "\"";
fstream.close();
EXPECT_EQ(executor.Execute(), 1);