From a418ed95b17a9fc152f55c1a6cd6a02cd9a8d9dd Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Mon, 4 Nov 2024 10:02:59 -0800 Subject: [PATCH] [CHERRY-PICK] 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 (cherry picked from edk2 commit 95d8a1c255cfb8e063d679930d08ca6426eb5701) --- .gitmodules | 2 +- UnitTestFrameworkPkg/ReadMe.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index 851db58940..b63780f865 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,7 +16,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/UnitTestFrameworkPkg/ReadMe.md b/UnitTestFrameworkPkg/ReadMe.md index 131fae0713..9eeec17234 100644 --- a/UnitTestFrameworkPkg/ReadMe.md +++ b/UnitTestFrameworkPkg/ReadMe.md @@ -487,8 +487,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