From f13b4d4a5db85c22991e5f437f1521b0a8970137 Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Tue, 6 Feb 2024 21:35:24 +0100 Subject: [PATCH] Fix error when loading both gnu.cfg and bsd.cfg --- cfg/gnu.cfg | 2 -- test/testlibrary.cpp | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cfg/gnu.cfg b/cfg/gnu.cfg index fb998dee5ae..0e3ae7f7222 100644 --- a/cfg/gnu.cfg +++ b/cfg/gnu.cfg @@ -245,8 +245,6 @@ - - false diff --git a/test/testlibrary.cpp b/test/testlibrary.cpp index fc5b2f1fda0..1bdc06f5182 100644 --- a/test/testlibrary.cpp +++ b/test/testlibrary.cpp @@ -70,6 +70,7 @@ class TestLibrary : public TestFixture { TEST_CASE(container); TEST_CASE(version); TEST_CASE(loadLibErrors); + TEST_CASE(loadLibCombinations); } static bool loadxmldata(Library &lib, const char xmldata[], std::size_t len) @@ -1065,6 +1066,13 @@ class TestLibrary : public TestFixture { // comma followed by dot LOADLIB_ERROR_INVALID_RANGE("-10:0,.5:"); } + + void loadLibCombinations() const { + { + const Settings s = settingsBuilder().library("std.cfg").library("gnu.cfg").library("bsd.cfg").build(); + ASSERT_EQUALS(s.library.defines.empty(), false); + } + } }; REGISTER_TEST(TestLibrary)