From bf8a429f4e17a465b01937663e24b6c5cf64c020 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Mon, 4 Nov 2024 10:02:59 -0800 Subject: [PATCH] UnitTestFrameworkPkg: Use TianoCore mirror of subhook submodule Change subhook url from https://github.com/Zeex/subhook to https://github.com/tianocore/edk2-subhook because old url is no longer available. Also align .gitmodules file to use consistent LF line endings. Signed-off-by: Michael D Kinney --- .gitmodules | 2 +- ReadMe.rst | 2 +- UnitTestFrameworkPkg/ReadMe.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitmodules b/.gitmodules index 8186bf1de4..b2b13fb864 100644 --- a/.gitmodules +++ b/.gitmodules @@ -25,7 +25,7 @@ url = https://github.com/google/googletest.git [submodule "UnitTestFrameworkPkg/Library/SubhookLib/subhook"] path = UnitTestFrameworkPkg/Library/SubhookLib/subhook - url = https://github.com/Zeex/subhook.git + url = https://github.com/tianocore/edk2-subhook.git [submodule "MdePkg/Library/BaseFdtLib/libfdt"] path = MdePkg/Library/BaseFdtLib/libfdt url = https://github.com/devicetree-org/pylibfdt.git diff --git a/ReadMe.rst b/ReadMe.rst index cfd522fdbd..eb08baa017 100644 --- a/ReadMe.rst +++ b/ReadMe.rst @@ -95,7 +95,7 @@ that are covered by additional licenses. - `MdeModulePkg/Universal/RegularExpressionDxe/oniguruma `__ - `UnitTestFrameworkPkg/Library/CmockaLib/cmocka `__ - `UnitTestFrameworkPkg/Library/GoogleTestLib/googletest `__ -- `UnitTestFrameworkPkg/Library/SubhookLib/subhook `__ +- `UnitTestFrameworkPkg/Library/SubhookLib/subhook `__ - `RedfishPkg/Library/JsonLib/jansson `__ - `MdePkg/Library/BaseFdtLib/libfdt `__ - `MdePkg/Library/MipiSysTLib/mipisyst `__ diff --git a/UnitTestFrameworkPkg/ReadMe.md b/UnitTestFrameworkPkg/ReadMe.md index a61e36d96f..b6dfa7f6c0 100644 --- a/UnitTestFrameworkPkg/ReadMe.md +++ b/UnitTestFrameworkPkg/ReadMe.md @@ -485,8 +485,8 @@ function to be compiled into the test application and then hooked to during a test. This library is mainly a wrapper around the -[subhook](https://github.com/Zeex/subhook) header and source files. It is -important to note that the use of the mock function macros and the creation +[subhook](https://github.com/tianocore/edk2-subhook) header and source files. It +is important to note that the use of the mock function macros and the creation of mock functions requires no knowledge about the SubhookLib. The SubhookLib library is entirely hidden and encapsulated within FunctionMockLib, and it is only mentioned here to provide a complete explanation on all the libraries