Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
5256 Discussions

New cmd window spawned when run from TeamCity in Windows

Hill__Stephen
Beginner
1,493 Views

We are running the following in cmd under Windows:

"C:\Program Files (x86)\IntelSWTools\Inspector 2019\bin64\inspxe-cl.exe" -user-data-dir=build\\unittest64 -collect mi3 -knob detect-invalid-accesses=true -knob analyze-stack=false -knob detect-leaks-on-exit=false -knob detect-resource-leaks=false -knob enable-memory-growth-detection=false -knob enable-on-demand-leak-detection=false -knob remove-duplicates=true -knob still-allocated-memory=false -knob stack-depth=32 -mrte-mode=auto -module-filter-mode=include -s-f ../tm_win32_tools/cpputest/inspector_cpputest.sup -r seg_unittest.exe.inspector -- build\unittest64\seg_unittest.exe

And the output from the .exe under test, seg_unittest.exe, comes out with output of Inspector in the cmd. All good :).

 

If we run the same cmdline with Teamcity Agent batch, Inspector spawns a new cmd shell under which the output of seg_unittest.exe comes out. The problem with this is that we then cannot capture this output in TeamCity.

Why do we see this behaviour under TeamCity?

How can we fix it?

0 Kudos
1 Reply
James_T_Intel
Moderator
1,493 Views

Is it possible that you are running into the problem described at https://stackoverflow.com/questions/19636433/teamcity-command-line-build-does-not-actually-start-the-cmd-file?  If so, Inspector cannot bypass this behavior.  If you want to capture the command line output, I recommend redirecting to a text file and post-processing that file.

0 Kudos
Reply