tell OpenCppCoverage that we run an optimized build
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 13 Dec 2022 10:43:27 +0000 (11:43 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Thu, 15 Dec 2022 08:41:13 +0000 (09:41 +0100)
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 <matthieu.gallien@nextcloud.com>
.github/workflows/windows-build-and-test.yml

index a2f8b42c04b684b07372a1eaea312cd4d7c5b6ac..5933928531c2314827c37d24c1eed820e628a5e2 100644 (file)
@@ -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