-
When are you planning to adopt VS2017
-
cpptesttrace --cpptesttraceTraceCommand setting
My build command, under Windows, use several different compilers toolchains (gcc, ARM, Microsoft VS), building several different components at once. I would like to collect traced commands only from particular compiler toolchain using cpptesttrace tool. The cpptesttrace trace/collect data from all toolchains (predefined…
-
Cannot start process. Executable not found.
Hi, When I run a c++ test with Parasoft (static analysis), I always get the following message: "C++test analysis errors in MyTest/MyTest/Source Files/MyTest.cxx 1. C/C++ code checker: general failure. Error: Cannot start process. Executable not found." Does any of the members know what may be wrong? Thank You.
-
Static report
Why are my files getting skipped and not checked while testing with the rules? [Static Coding standards 1/21 Skipped:21 Failed Runs:0 Violations found: 0 Number of Rules violated:0]
-
Creating a Rule for C code
A rule to identify this violation has to be created. "Every file shall have a file header. It should basically detail about information contained in that file in a specific format". Can we try adding a simple python method to do this? or is there a specific node method to be followed. For a template refer attachment
-
Resolving OutOfMemoryError: Java Heap Space or GC Overhead
Description: When running a Parasoft Test based product, you may see the error: "java.lang.OutOfMemoryError: Java heap space". or "An internal error occurred during: "Building workspace". GC overhead limit exceeded" Cause: This error occurs when Java runs out of memory. Resolution: To resolve this issue, you have two…
-
C/C++test Data Flow Analysis Performance Debugging Log
To get information about how long it takes to process each file and how long it takes to do each of the Data Flow (Bug Detective) analysis phase, set up the following flags in the Parasoft > Preferences > Technical Support > Advanced options (make sure Advanced options are enabled): CPPTEST_TIME_STATISTICS_PER_FILE=true…
-
Clean Parasoft Registry for C++test Visual Studio Plugin
When installing a new version of C++test on Visual Studio, it is recommended to remove the old version with the uninstaller since we can only have one version of C++test on Visual Studio. However, if the uninstallation is completed but when installing a new version of C++test, a error message displays that "Cannot install…
-
When attempting to generate C++ stubs, especially safe stubs, C++test attempts to compile user hea
Check to make sure the user has not redefined assert.h. In the cases that triggered this article the user had their own version of assert.h and the safe stubs build included that file rather than the standard C library file. The user version contained C++ code that the C compiler could not build causing a compiler fail.…
-
How to determine if an environment is supported by C/C++test
The post below assumes all the software and hardware requirements for host machine (where C/C++test is installed) on are met, which is a prerequisite for all testing with C/C++test. Please see the "Installation and Licensing" page in the C/C++test Help documentation for the detailed requirements. The information you will…
-
Unrecognized command line option "-m32"
This message occurs because C/C++test will implicitly change the compilation line to add the "-m32" compiler option for some compilers. This is generally not an issue, however sometimes the user is using a compiler that does not support this "-m32" option (This usually means that an "unsupported" compiler is being used.…
-
Unable to uninstall Parasoft Test 9.5 after uninstalling C++Test 9.5
uninstall issueI've had Parasoft test 9.5, C++Test 9.5 and dotTest C++ 9.5 installed and using them from VS 2013. We are upgrading to version 9.6 so I uninstalled dotTest, then C++Test. But when I try to uninstall Parasoft Test I get an error message "Cannot unregister Parasoft Test from Visual Studio 2013 because other…
-
File scope test with symbols in 2 .cpp files
I have the following: IWidget.h: class IWidget { virtual ~IWidget(); }; IWidget.cpp: #include "IWidget.h" IWidget::~IWidget {} Widget.h: #include "IWidget.h" class Widget : public IWidget { virtual ~Widget(); }; Widget.cpp: #include "Widget.h" Widget::~Widget() {} When I try to write a test for the Widget class, I get…
-
Links to test file locations
Following the paragraph "Executing Existing CppUnit Test Cases" from the C++_userguide I added test files into tests subdirectory of my project. The "Test suite file search patterns" is set to "${project_loc}/tests/*". The problem is that files in the tests directory which are linked to somewhere else are not executed.…
-
Running test executable on target device
Hello All, I have created a simple c application and test cases for that. Now i want to build test executable for that and run it on another machine through TCP/IP communication. Can anyone help me out with that as I am not able to generate test executable. Thanks
-
Information on project_loc variable
I am running VS 2008 with the integrated C++Test. Sometime when I run C++Test everything is fine, but other times, I have to remove the ${project_loc} and replace it with a hardcoded path. How and where is project_loc defined within C++Test? Not sure why it is getting overwritten or why C++Test can not recognize the…
-
Code Coverage other than Line Coverage
Is there an option in the parameter file that will allow for the running the code coverage to be something other than "Line Coverage", for example "Modified Condition/Decision Coverage"? If so what is the option? When running the unit tests can you have one pass of the unit tests report on all the types of coverage or do…
-
C++Test Rule for indentation
Checking indentation level for public/protected/private & switch cHi all, Does anybody have a C++Test rule to check the indentation level of public/protected/private keywords and switch cases? Our coding standard requires these to be in the following form: CODEclass MyClass { public: int foo(int x); protected: private: int…
-
Local pathnames in the .parasoft file.
Sharing projects and test assets through source control requires checking in a .parasoft file (if present) among others, but sometimes it contains local pathnames. For a number of technical reasons, when updating that .parasoft file, C++test will dump all (internally registered) properties (with their default values, which…
-
Parsing comment with RuleWizard
Hi, One of our organizational rules state that the file name shall be included in a Doxygen style comment, like the following: /** * @file filename.ext * * file_description */ I have created the rule to verify everything until the name of the file, however I wasn't able to check if the added filename.ext in Doxygen comment…
-
Runtime exception in the test case generated!
Exceptions in QString in the test cases generated...Consider the following code Snippet!! - Its a Qt based application... In one of the generated test case, we have: CODE ... .... const ::QChar * _arg1_0 = 0 ; /* Initializing constructor argument 2 (unknown) */ int _arg2_0 = cpptestLimitsGetMaxInt(); ::QString _text…
-
Timeout is normal
I have a piece of code that should wait on a semaphore for forever if everything is working OK. /*Setup threads and wait*/ sem_wait(&semaphore); //Wait for forever unless program termination is required. /*Case for exit conditions*/ and should only fail if one of the child threads releases the semaphore, meaning some…
-
LNK 2001 and LNK 2019 errors
link time error at test case compilationHi everyone, I would like to introduce you my brand new link time problem. And here it is. LNK 2001 and LNK 2019 errors. Here, you can find my ProjectConfigurations/LinkerOptions tab settings; At User Libraries combobox; LINKER OPTIONS /INCREMENTAL /NOLOGO /LIBPATH:"C:\Qt\4.2.1\lib"…
-
How to initialized QApplication object.
Qt auto generated test case do not playThe ability to unit test with QT headers and libraries is unique. Because without a correctly constructed QApplication object. The automatic test cases generated by C++Test may not run during test case execution, thereby showing no execution results. In order to properly test a QT…
-
How to examine data that was sent standard out
Data sent to standard out from a file1. Create a simple function that will accept two arguments, a filename and mode File: try.c -------------cut---------------------- /* try.c */ #include <stdio.h> /* the foo function will accept the name of the file and the mode as arguments*/ /* and pass the values to fopen, then prints…
-
Unix debugger
Is it possible to change the default debugger from gdb to ddd?
-
Function templates
Hello, I am having difficulty matching code patterns involving function templates using the rule wizard. It seems that context a(b) does not work when "a" is function template. Here is the template: template <typename object> void ptr_remove(const object*& to_remove) { if(to_remove != NULL) delete to_remove; to_remove =…
-
Unexpected paths?
Unexpected paths?What, by definition, are 'unexpected paths' ? From what I can tell, the manual does not say. I am speculating that, in the case of an if () {} else {} construct, the 'if' path is the 'expected' one and the 'else' path is the unexpected one. Is this the case? If so, where does this terminology come from?
-
C++ Test Data Source Generation Issue
C++ Test Data Source Generation IssueWhat headings do I need to use in a CSV file to enable setting of Buffer[0], Buffer[1], etc. for the following function: unsigned char CalculateChecksum(unsigned char *Buffer,unsigned char Length).
-
Question about coverage metric scc and mc/dc
I think when simple condition coverage(scc) reaches 100%, then the mc/dc will also be 100%, is this correct? if this is not true, does anyone have some code snapshots to illustrate? thanks.
-
How do I change the rule description in RuleWizard
Change rule description in RuleWizardRight click in the rule area not on any of the elements and select Properties. This will bring up a window from which you can edit the rule description, severity, ID, author, language (C or C++), and the heading.