2016-10-25 1 views
0

저는 젠킨스에서 CI 워크 플로를 사용하고 있습니다.OpenCppCoverage 핸들 경로를 찾을 수 없습니다.

박쥐 파일은 다음과 같이 보이는, 모든 편집의 끝에서 생성됩니다 오류 : HandleInformation.cpp : 내 시험 때문에 항상 opencppcoverage에서 명백한 버그에 실패 실행됩니다

OpenCppCoverage -q --continue_after_cpp_exception --sources D:\Jenkins\workspace\bfsearch --modules D:\Jenkins\workspace\bfsearch --excluded_sources D:\Jenkins\workspace\bfsearch\tests --excluded_sources D:\Jenkins\workspace\bfsearch\bin --export_type=binary:coverage_results_bfs_add_test_TESTTARGET.exe.cov -- D:\Jenkins\workspace\bfsearch\bin\tests\Debug\bfs_add_test_TESTTARGET.exe 
OpenCppCoverage -q --continue_after_cpp_exception --sources D:\Jenkins\workspace\bfsearch --modules D:\Jenkins\workspace\bfsearch --excluded_sources D:\Jenkins\workspace\bfsearch\tests --excluded_sources D:\Jenkins\workspace\bfsearch\bin --export_type=binary:coverage_results_bfs_cluster_around_center_tests_TESTTARGET.exe.cov -- D:\Jenkins\workspace\bfsearch\bin\tests\Debug\bfs_cluster_around_center_tests_TESTTARGET.exe 
OpenCppCoverage -q --continue_after_cpp_exception --sources D:\Jenkins\workspace\bfsearch --modules D:\Jenkins\workspace\bfsearch --excluded_sources D:\Jenkins\workspace\bfsearch\tests --excluded_sources D:\Jenkins\workspace\bfsearch\bin --export_type=binary:coverage_results_bfs_multiple_cluster_centers_test_TESTTARGET.exe.cov -- D:\Jenkins\workspace\bfsearch\bin\tests\Debug\bfs_multiple_cluster_centers_test_TESTTARGET.exe 
OpenCppCoverage -q --continue_after_cpp_exception --sources D:\Jenkins\workspace\bfsearch --modules D:\Jenkins\workspace\bfsearch --excluded_sources D:\Jenkins\workspace\bfsearch\tests --excluded_sources D:\Jenkins\workspace\bfsearch\bin --input_coverage=coverage_results_bfs_add_test_TESTTARGET.exe.cov --input_coverage=coverage_results_bfs_cluster_around_center_tests_TESTTARGET.exe.cov --input_coverage=coverage_results_bfs_multiple_cluster_centers_test_TESTTARGET.exe.cov --export_type=cobertura:coverage_results.xml -- D:\Jenkins\workspace\bfsearch\bin\tests\Debug\bfs_radius_test_TESTTARGET.exe 

85 수 없습니다 핸들 경로를 찾으십시오. 핸들이 유효하지 않습니다.

D:\Jenkins\workspace\bfsearch>./runtests.bat 

D:\Jenkins\workspace\bfsearch>OpenCppCoverage -q --continue_after_cpp_exception --sources D:\Jenkins\workspace\bfsearch --modules D:\Jenkins\workspace\bfsearch --excluded_sources D:\Jenkins\workspace\bfsearch\\tests --excluded_sources D:\Jenkins\workspace\bfsearch\\bin --export_type=binary:coverage_results_bfs_add_test_TESTTARGET.exe.cov -- D:\Jenkins\workspace\bfsearch\bin\tests\Debug\bfs_add_test_TESTTARGET.exe 
Error: HandleInformation.cpp:85 Cannot find path for the handle.The handle is invalid. 



D:\Jenkins\workspace\bfsearch>OpenCppCoverage -q --continue_after_cpp_exception --sources D:\Jenkins\workspace\bfsearch --modules D:\Jenkins\workspace\bfsearch --excluded_sources D:\Jenkins\workspace\bfsearch\\tests --excluded_sources D:\Jenkins\workspace\bfsearch\\bin --export_type=binary:coverage_results_bfs_cluster_around_center_tests_TESTTARGET.exe.cov -- D:\Jenkins\workspace\bfsearch\bin\tests\Debug\bfs_cluster_around_center_tests_TESTTARGET.exe 
Error: HandleInformation.cpp:85 Cannot find path for the handle.The handle is invalid. 



D:\Jenkins\workspace\bfsearch>OpenCppCoverage -q --continue_after_cpp_exception --sources D:\Jenkins\workspace\bfsearch --modules D:\Jenkins\workspace\bfsearch --excluded_sources D:\Jenkins\workspace\bfsearch\\tests --excluded_sources D:\Jenkins\workspace\bfsearch\\bin --export_type=binary:coverage_results_bfs_multiple_cluster_centers_test_TESTTARGET.exe.cov -- D:\Jenkins\workspace\bfsearch\bin\tests\Debug\bfs_multiple_cluster_centers_test_TESTTARGET.exe 
Error: HandleInformation.cpp:85 Cannot find path for the handle.The handle is invalid. 



D:\Jenkins\workspace\bfsearch>OpenCppCoverage -q --continue_after_cpp_exception --sources D:\Jenkins\workspace\bfsearch --modules D:\Jenkins\workspace\bfsearch --excluded_sources D:\Jenkins\workspace\bfsearch\\tests --excluded_sources D:\Jenkins\workspace\bfsearch\\bin --input_coverage=coverage_results_bfs_add_test_TESTTARGET.exe.cov --input_coverage=coverage_results_bfs_cluster_around_center_tests_TESTTARGET.exe.cov --input_coverage=coverage_results_bfs_multiple_cluster_centers_test_TESTTARGET.exe.cov --export_type=cobertura:coverage_results.xml -- D:\Jenkins\workspace\bfsearch\bin\tests\Debug\bfs_radius_test_TESTTARGET.exe 
Argument of input_coverage <coverage_results_bfs_add_test_TESTTARGET.exe.cov> does not exist. 
OpenCppCoverage Version: 0.9.5.2 

Usage: [options] -- program_to_run optional_arguments: 

Command line only: 
    -v [ --verbose ]     Verbose mode. 
    -q [ --quiet ]     Quiet mode. 
    -h [ --help ]     Show help message. 
    --config_file arg    Filename of a configuration file. 

Command line and configuration file: 
    --modules arg (=*)    The pattern that module's paths should 
            match. Can have multiple occurrences. 
    --excluded_modules arg   The pattern that module's paths should NOT 
            match. Can have multiple occurrences. 
    --sources arg (=*)    The pattern that source's paths should 
            match. Can have multiple occurrences. 
    --excluded_sources arg   The pattern that source's paths should NOT 
            match. Can have multiple occurrences. 
    --input_coverage arg    A output path of export_type=binary. This 
            coverage data will be merged with the 
            current one. Can have multiple occurrences. 
    --export_type arg (=html)  Format: <exportType>:<outputPath>. 
            <exportType> can be: binary, cobertura, html 
            <outputPath> (optional) output file or 
            directory for the export. 
            Example: html:MyFolder\MySubFolder 
            This flag can have multiple occurrences. 
    --working_dir arg    The program working directory. 
    --cover_children     Enable code coverage for children processes. 
    --no_aggregate_by_file   Do not aggregate coverage for same file 
            path. 
    --unified_diff arg    Format: <unifiedDiffPath>?<rootFolder> 
            <unifiedDiffPath> path of the unified diff 
            file. Git users can use git diff output. 
            <rootFolder> (optional) root folder for 
            paths in the diff file. 
            See documentation for limitations. 
    --continue_after_cpp_exception Try to continue after throwing a C++ 
            exception. 

Build step 'Execute Windows batch command' marked build as failure 
Skipping Cobertura coverage report as build was not UNSTABLE or better ... 
Can you help me with this? The same script was working a month ago, now it doesn't. Is there something related to windows updates ? I've also looked at the source code, there's no such code at HandleInformation.cpp:85 that can cause an error like that. Is source code updated in the repository? 

내가 최신 버전을 설치 한 문제가 지속됩니다.

다음은 문제를 테스트하기 위해 만든 빠른 프로젝트입니다.

https://github.com/onatbas/OpenCppCoverageTestFail

나는 자세한 정보 출력을 포함 시켰습니다.

Windws 7 x64를 실행 중입니다. 바이러스 백신 소프트웨어가 없습니다. 나는 그와 명령 프롬프트를 사용하여이 문제를 해결 얻을 수 있었다 나를 위해

감사

답변

0

는 관리자로 실행되었습니다.

관련 문제