Skip to content

Instantly share code, notes, and snippets.

@daparic
Created January 26, 2024 14:18
Show Gist options
  • Save daparic/fca38ff876f4d53167d79daec1fd8abe to your computer and use it in GitHub Desktop.
Save daparic/fca38ff876f4d53167d79daec1fd8abe to your computer and use it in GitHub Desktop.
Starting "Run Unit Tests" (Execution) for /src ...
Collecting tests to be executed...
...done.
Preparing execution flow...
Finding test cases...
...done.
[helper.c] Precompiling source: /src/src/helper.c ...
[main.cpp] Precompiling source: /src/src/main.cpp ...
[helper.c] gcc -g -I/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -c -DPARASOFT_CPPTEST -I /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -w -c -xc /home/dx/src/bladerunner/src/helper.c -o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/helper.o
[main.cpp] g++ -g -I/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -DPARASOFT_CPPTEST -I /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -w -c -xc++ /home/dx/src/bladerunner/src/main.cpp -o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/main.o
[helper.c] ...done.
[main.cpp] ...done.
Appending included test cases for: /src/src/helper.c ...
...done.
Appending included test cases for: /src/src/main.cpp ...
...done.
[helper.c] Preparing instrumentation for: /src/src/helper.c ...
[main.cpp] Preparing instrumentation for: /src/src/main.cpp ...
[bundled_helper.c] Checking dependencies for /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/bundled_helper.c ...
[bundled_main.cpp] Checking dependencies for /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/bundled_main.cpp ...
[bundled_helper.c] ...done.
[helper.c] /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/bin/xharness --native-options-start -I/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -c -DPARASOFT_CPPTEST --native-options-end --input=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/bundled_helper.c --xharness.outputFileName=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/tested/harness_helper.c --compiler-cfg-file=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/compilers/gcc_11-64/c.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_coverage.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_callbacks.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_befriend.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_stubcall.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_renamemain.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_symbols.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_enums.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_enums.psrc --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/tested/instr_flow_step.psrc --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/advanced_opts.psrc
[bundled_main.cpp] ...done.
[main.cpp] /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/bin/xharness --native-options-start -I/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -DPARASOFT_CPPTEST --native-options-end --input=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/bundled_main.cpp --xharness.outputFileName=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/tested/harness_main.cpp --compiler-cfg-file=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/compilers/gcc_11-64/cpp.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_coverage.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_callbacks.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_befriend.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_stubcall.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_renamemain.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_symbols.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_enums.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_enums.psrc --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/tested/instr_flow_step.psrc --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/advanced_opts.psrc
[helper.c] ...done.
[main.cpp] ...done.
Collecting static coverage data for: /src/src/helper.c ...
Collecting static coverage data from new_coverage.map ...
...done.
Collecting static coverage data for: /src/src/main.cpp ...
Collecting static coverage data from new_coverage.map ...
...done.
Processing static coverage data...
...done.
Instrumenting stubs source: /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/safestubs/safe_stubs_linux.c ...
[safe_stubs_linux.c] Checking dependencies for /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/safestubs/safe_stubs_linux.c ...
[safe_stubs_linux.c] ...done.
/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/bin/xharness --native-options-start -I/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -c -DPARASOFT_CPPTEST --native-options-end --input=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/safestubs/safe_stubs_linux.c --xharness.outputFileName=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/safe_stubs_linux.c2d4b158c/harness_safe_stubs_linux.c --compiler-cfg-file=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/compilers/gcc_11-64/c.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_stubs.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_safestubs.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_autostubs.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_variableautostubs.psrc --psrc=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/xharness_features_symbols.psrc --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/safe_stubs_linux.c2d4b158c/user_stubs_instr_flow_step.psrc --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/advanced_opts.psrc
...done.
Reading symbols data...
...done.
Checking missing definitions...
/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/bin/lsi -g /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/helper.o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/main.o -L/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/lib -lcpptestruntime64 -o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/lsi_dummy_output --compiler-cfg-file=/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/compilers/gcc_11-64/cpp.psrc --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/lsi_flow_step.psrc --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/advanced_opts.psrc
Reading symbols file "/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/tested/harness_symbols.xml"
Reading symbols file "/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/tested/harness_symbols.xml"
Reading symbols file "/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/safe_stubs_linux.c2d4b158c/harness_symbols.xml"
Using libraries detection schema: gnu
Using real command line extraction schema: default
Using default library enumeration only.
Reading library "/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/helper.o"
Reading library "/home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/main.o"
Reading library "/lib/x86_64-linux-gnu/libc.so.6"
Reading library "/lib/x86_64-linux-gnu/libm.so.6"
Reading library "/lib/x86_64-linux-gnu/libmvec.so.1"
Reading library "/lib64/ld-linux-x86-64.so.2"
Reading library "/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/lib/libcpptestruntime64.so"
Reading library "/usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o"
Reading library "/usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o"
Reading library "/usr/lib/gcc/x86_64-linux-gnu/11/libgcc.a"
Reading library "/usr/lib/gcc/x86_64-linux-gnu/11/libgcc_s.so"
GNU ld script ignored
Reading library "/usr/lib/gcc/x86_64-linux-gnu/11/libstdc++.so"
Reading library "/usr/lib/x86_64-linux-gnu/Scrt1.o"
Reading library "/usr/lib/x86_64-linux-gnu/crti.o"
Reading library "/usr/lib/x86_64-linux-gnu/crtn.o"
Reading library "/usr/lib/x86_64-linux-gnu/libc.so"
GNU ld script ignored
Reading library "/usr/lib/x86_64-linux-gnu/libc_nonshared.a"
Reading library "/usr/lib/x86_64-linux-gnu/libgcc_s.so.1"
Reading library "/usr/lib/x86_64-linux-gnu/libm.so"
GNU ld script ignored
...done.
Reading available definitions data...
...done.
Analyzing missing definitions...
...done.
Configuring stubs...
Using original definition for function: void * malloc(size_t)
Using original definition for function: int printf(const char *, ...)
...done.
Creating stub configuration header file...
/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/bin/confgen --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/create_stub_config_header_step.psrc
...done.
Preparing data sources...
Preparing data source: test_tst_oob
...done.
Creating test runner file...
/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/bin/testrunner --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/test_runner_generation_flow_step.psrc --psrc=/home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/advanced_opts.psrc
...done.
[helper.c] Compiling instrumented source: /src/src/helper.c ...
[safe_stubs_linux.c] Compiling instrumented source: /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/etc/safestubs/safe_stubs_linux.c ...
[cpptest_testrunner.cpp] Compiling source: /home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/cpptest_testrunner.cpp ...
[main.cpp] Compiling instrumented source: /src/src/main.cpp ...
[safe_stubs_linux.c] gcc -g -I/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -c -DPARASOFT_CPPTEST -I /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -w -c -xc /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/safe_stubs_linux.c2d4b158c/harness_safe_stubs_linux.c -o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/safe_stubs_linux.c2d4b158c/harness_safe_stubs_linux.o
[helper.c] gcc -g -I/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -c -DPARASOFT_CPPTEST -I /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -w -c -xc /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/tested/harness_helper.c -o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/tested/harness_helper.o
[main.cpp] g++ -g -I/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -DPARASOFT_CPPTEST -I /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -w -c -xc++ /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/tested/harness_main.cpp -o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/tested/harness_main.o
[cpptest_testrunner.cpp] Checking dependencies for /home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/cpptest_testrunner.cpp ...
[safe_stubs_linux.c] ...done.
[helper.c] ...done.
[main.cpp] ...done.
[cpptest_testrunner.cpp] ...done.
[cpptest_testrunner.cpp] g++ -g -I/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -DPARASOFT_CPPTEST -I /opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/runtime/include -w -c -xc++ /home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/cpptest_testrunner.cpp -o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/cpptest_testrunner.cpp90bf7d15/cpptest_testrunner.o
[cpptest_testrunner.cpp] ...done.
Linking test project...
g++ -g /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/helper.c8ecfce68/tested/harness_helper.o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/main.cppbd48d833/tested/harness_main.o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/cpptest_testrunner.cpp90bf7d15/cpptest_testrunner.o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/file-data/safe_stubs_linux.c2d4b158c/harness_safe_stubs_linux.o -L/opt/parasoft/cpptest_professional-2023.2.0-linux.x86_64/bin/engine/lib -lcpptestruntime64 -o /home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/srcTest.exe
...done.
Running tests...
"/home/dx/parasoft-workspace/bladerunner/.cpptest/src/unit-data/current_tubf179707/srcTest.exe" --start-after=0
*** f(0) ***
*** f(1) ***
*** f(2) ***
*** f(3) ***
*** f(4) ***
...done.
Reading test log...
------------------------------
Test suite begin: TestSuite_main_cpp_67a03998
------------------------------
Data source test case begin: test_tst_oob
------------------------------
Test case begin: test_tst_oob
Data source row: 1
Status: OK
Test case end: test_tst_oob
------------------------------
Test case begin: test_tst_oob
Data source row: 2
Status: OK
Test case end: test_tst_oob
------------------------------
Test case begin: test_tst_oob
Data source row: 3
Status: OK
Test case end: test_tst_oob
------------------------------
Test case begin: test_tst_oob
Data source row: 4
Status: OK
Test case end: test_tst_oob
------------------------------
Test case begin: test_tst_oob
Data source row: 5
Status: OK
Test case end: test_tst_oob
------------------------------
Data source test case end: test_tst_oob
------------------------------
Test suite end: TestSuite_main_cpp_67a03998
------------------------------
...done.
Collecting dynamic coverage data...
Collecting dynamic coverage data from cpptest_results.clog (0%)...
Collecting dynamic coverage data from cpptest_results.clog (10%)...
Collecting dynamic coverage data from cpptest_results.clog (20%)...
Collecting dynamic coverage data from cpptest_results.clog (30%)...
Collecting dynamic coverage data from cpptest_results.clog (40%)...
Collecting dynamic coverage data from cpptest_results.clog (50%)...
Collecting dynamic coverage data from cpptest_results.clog (60%)...
Collecting dynamic coverage data from cpptest_results.clog (70%)...
Collecting dynamic coverage data from cpptest_results.clog (80%)...
Collecting dynamic coverage data from cpptest_results.clog (90%)...
Collecting dynamic coverage data from cpptest_results.clog (100%)...
...done.
Clearing temporary coverage data...
...done.
"Run Unit Tests" (Execution) for /src successfully finished.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment