diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 83af77b..3df8deb 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -36,8 +36,12 @@ jobs: - name: Install json-c run: sudo apt-get install libjson-c-dev - - name: Install Catch2 - run: sudo apt-get install catch2 + - name: Install Catch2 v3 from git repo + run: | + git clone https://github.com/catchorg/Catch2.git + cd Catch2 + cmake -B build -S . -DBUILD_TESTING=OFF + sudo cmake --build build/ --target install - name: Autobuild uses: github/codeql-action/autobuild@v3 diff --git a/tests/MPI_Dims_weighted_create_test.cpp b/tests/MPI_Dims_weighted_create_test.cpp index 9cdc2eb..23d4250 100644 --- a/tests/MPI_Dims_weighted_create_test.cpp +++ b/tests/MPI_Dims_weighted_create_test.cpp @@ -28,7 +28,8 @@ #define CATCH_CONFIG_RUNNER #define CATCH_CONFIG_CONSOLE_WIDTH 100 -#include +#include +#include #include #include diff --git a/tests/MPI_Info_set_json_test.cpp b/tests/MPI_Info_set_json_test.cpp index d9f1e92..b42304a 100644 --- a/tests/MPI_Info_set_json_test.cpp +++ b/tests/MPI_Info_set_json_test.cpp @@ -28,7 +28,9 @@ #define CATCH_CONFIG_RUNNER #define CATCH_CONFIG_CONSOLE_WIDTH 100 -#include +#include +#include +#include #include #include