Files
iniparser/fix-tests.patch

19 lines
618 B
Diff
Raw Permalink Normal View History

- Add fix-tests.patch: Makes the tests work with the "offline" CMake option (FETCHCONTENT_SOURCE_DIR_UNITY) - Drop iniparser_remove_rpath.patch: Not needed anymore because of the switch to CMake - Update to version 4.2.6: * CVE-2025-0633 (bsc#1237377) Fix heap overflow in iniparser_dumpsection_ini() * Add test to reproduce heap overflow in iniparser_dumpsection_ini() * Fix links to FAQ sites in doxygen generated documentation * Add packaging status badge to give users and me an overview * Enable command line arguments for tests - Update to version 4.2.5: * Fix stack buffer overflow in iniparser dump functions * Update doxygen main page, merge it with README and use it as new main page * Explain how to build documentation as it not build per default * Stylize the name iniParser as it used to be done * Mention CMake options to prevent them from being overlooked * Add build instructions for MinGW * Replace outdated installation instructions by link to README sections * Remove section numbers from README * add DESCRIPTION, HOMEPAGE_URL and LANGUAGES in cmake project() * Fix MSVC build issues - Update to version 4.2.4: * Fix paths in generated pkgconfig file - Update to version 4.2.3: * Replace our own unit test framework (CuTest) by Unity * Do not install tests but make them execute in build directory * Build and run tests and examples on Windows CI runner * Fix pkgconfig file - Update to version 4.2.2: * add CMake Support * update README * add Gitlab CI configuration * This release makes iniparser-meta obsolete. OBS-URL: https://build.opensuse.org/package/show/Education/iniparser?expand=0&rev=8
2025-02-20 13:37:34 +00:00
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -29,11 +29,12 @@ set(FETCHCONTENT_QUIET OFF)
FetchContent_Declare(
unity
GIT_REPOSITORY "https://github.com/throwtheswitch/unity.git"
- GIT_PROGRESS TRUE
- PATCH_COMMAND ${CMAKE_COMMAND} -E copy
- ${CMAKE_CURRENT_LIST_DIR}/unity_config.h ./src/)
+ GIT_PROGRESS TRUE)
FetchContent_MakeAvailable(unity)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/unity_config.h" DESTINATION "${unity_SOURCE_DIR}/src/")
+
target_compile_definitions(unity PUBLIC UNITY_INCLUDE_CONFIG_H
UNITY_USE_COMMAND_LINE_ARGS)