From d5dba952e68af987a9172d79c554bc9a551c5c52 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Wed, 1 Mar 2023 22:48:59 +0800 Subject: [PATCH] Update ini-config mock Use library in new subproject. --- CMakeLists.txt | 2 +- .../ini-config/ini-config.mock.h} | 4 ++-- __tests__/src/packages/game/input.test.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename __mocks__/{src/packages/config/IZ_config.mock.h => subprojects/ini-config/ini-config.mock.h} (89%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c2fd71..76f44d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -262,7 +262,7 @@ add_executable( __mocks__/src/packages/stdinc/IZ_stdlib.mock.h __tests__/src/packages/game/input.test.c - __mocks__/src/packages/config/IZ_config.mock.h + __mocks__/subprojects/ini-config/ini-config.mock.h ) target_link_libraries( diff --git a/__mocks__/src/packages/config/IZ_config.mock.h b/__mocks__/subprojects/ini-config/ini-config.mock.h similarity index 89% rename from __mocks__/src/packages/config/IZ_config.mock.h rename to __mocks__/subprojects/ini-config/ini-config.mock.h index d974704..cb81fd1 100644 --- a/__mocks__/src/packages/config/IZ_config.mock.h +++ b/__mocks__/subprojects/ini-config/ini-config.mock.h @@ -1,5 +1,5 @@ -#ifndef IZ_CONFIG_MOCK_H -#define IZ_CONFIG_MOCK_H +#ifndef INI_CONFIG_MOCK_H +#define INI_CONFIG_MOCK_H #include #include diff --git a/__tests__/src/packages/game/input.test.c b/__tests__/src/packages/game/input.test.c index 1a2b4ea..967219d 100644 --- a/__tests__/src/packages/game/input.test.c +++ b/__tests__/src/packages/game/input.test.c @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include #include