From b5fe8adb5d84b6394c69ca26fb8754e5a3fec1d4 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 13 Dec 2022 11:43:27 +0100 Subject: [PATCH] tell OpenCppCoverage that we run an optimized build should fix the crash accordign to the doc linked there https://github.com/OpenCppCoverage/OpenCppCoverage/wiki/FAQ#your-application-has-thrown-an-unhandled-exception-code-3221225477-exception_access_violation Signed-off-by: Matthieu Gallien --- .github/workflows/windows-build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index a2f8b42c04b68..5933928531c23 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -72,7 +72,7 @@ jobs: $binFolder = "$buildFolder\bin" - & OpenCppCoverage.exe --quiet --sources ${{ github.workspace }} --modules $binFolder\*.dll* --export_type cobertura:${{ env.COBERTURA_COVERAGE_FILE }} --cover_children -- ctest --output-on-failure --timeout 300 + & OpenCppCoverage.exe --optimized_build --quiet --sources ${{ github.workspace }} --modules $binFolder\*.dll* --export_type cobertura:${{ env.COBERTURA_COVERAGE_FILE }} --cover_children -- ctest --output-on-failure --timeout 300 } runTestsAndCreateCoverage