Parasoft C/C++test is an integrated Development Testing solution for automating a broad range of testing best practices proven to improve development team productivity and software quality.
Questions tagged [parasoft]
70 questions
1
vote
0 answers
Parasoft C/C++Test 9.4 , error: invalid type conversion
When I used Parasoft c/c++test9.4 with Cygwin gcc11.3 to run unit test, there is such a problem:
C++test analysis errors in /example_debug
1. Test execution: error preparing instrumentation / symbols data for…

never_
- 11
- 3
1
vote
1 answer
Parasoft rulewizard
I'm trying to create a static rule to check the token passing for defensive programming in a SIL4 application.
The rule is the following: "Each functions shall have a const uint_32 as last parameter"
ie:
uint_32 foo(uint_32 a, uint_32 b, const…

Steak_over_floor
- 19
- 2
1
vote
1 answer
CORBA::ORB_init leaking memory
I have a project that uses TAO(CORBA)'s Naming Service for information exchange between different modules. However, I found that my implementation of the Naming Service caused memorys leak as detected by my memory leak detection…

BecoZ
- 109
- 2
- 10
1
vote
1 answer
Return NULL on mismatch
The below code fetches an input and splits the input at value "HttpOnly" and there after if an "if" condition is satisfied then it returns the value as such.
How can I make the value to return as NULL or "123" if the condition fails at split()…

Santhosh Test
- 13
- 3
1
vote
2 answers
How to set compiler path in parasoft cpptestcli?
I'm using Parasoft C++test 9.0.
I've used "cpptestscan.exe" to create build data file(bdf), then I want to run my ruleset with "cpptestcli.exe".
When I use "New Project -> C++ Test -> Create project from a build data file" in Parasoft IDE(Eclipse…

Alperen
- 3,772
- 3
- 27
- 49
1
vote
1 answer
Parasoft skips all the files without testing
I am trying to check "Coding Standarts" of our project with Parasoft. This is a C project which uses "gnu.cross.cortexm3". I open this project with Parasoft and try to test it with "Example Configurations" but it skips all the files in project and…

Alperen
- 3,772
- 3
- 27
- 49
1
vote
1 answer
How to Change the java versions in parasoft soatest 9.9?
I am running my soatest 9.9 version with java 1.7. Now i have a requirement to run the java code (written in 1.8) using my soatest 9.9. I am getting problems with some or other versioning. What are the steps to follow to successfully change the java…

Sravanthi Gopudi
- 11
- 2
1
vote
2 answers
How to get rid of "tainted parameter" in static analysis report?
I am using Parasoft to analyze my code. I go this violation:
Tainted parameter of entry point method ("inFileName") has been printed on the console
This is the code where the error is:
static void printUsage(char *inFileName)
{
printf("Usage:…

eyalm
- 3,366
- 19
- 21
1
vote
1 answer
Parasoft SOATest integration with IBM RTC
I am working on developing SOATest tests for web services. MY question is can we integrate SOATest with IBM RTC (Rational Team Concert) for source control?
Right now I was able to create a source control repository for SOATest project in RTC. But…

user5252179
- 133
- 3
- 20
1
vote
1 answer
localsettings.properties : How to use its properties for JTest configuration?
I'm trying to learn about the Maven Parasoft plugin, for JTest.
Full name for version 3.12 : Parasoft:maven-parasoft-plugin:3.12:jtest
First, except Apache website, I didn't find any tutorial about this plugin. I Wonder if i'm using bad keywords in…

Farah
- 2,469
- 5
- 31
- 52
1
vote
1 answer
Need to run Jtest by using an ant script...any example?
Need to run Jtest by using an ant script...any example ?
I have done this so far

Deepjyot Maher
- 51
- 6
0
votes
1 answer
Parasoft c++ test link unit test error
My project can build & link successfully, and there is no compile error about unit test.
The error information only "Test execution: error linking test executable for Test unit for selected sources."
So, anyone can give some suggestion? Thanks.
I…

Wenbo Huang
- 85
- 7
0
votes
2 answers
Quality Error passing sizeof casted return
I am using a code quality tool called Parasoft C++ Test. It is complaining about the following:
setsockopt(...,sizeof(int));
It states:
In 'setsockopt' function call, do not pass long casted to int expression as '5' function argument
I have…

PatrickV
- 2,057
- 23
- 30
0
votes
0 answers
Parasoft C/C++ Test error: expected an identifier extern "C" {
When I tried to run unit test for a simple main program in C++:
#include
int main()
{
std::cout << "hello world" << std::endl;
return 0;
}
it occurred the following problem:
C++test analysis errors in /Demo_aCpp
1. Test…

never_
- 11
- 3
0
votes
0 answers
Static code analysis puzzler in extremely simple declaration
myNameSpace::myEnumType LookupEnumValueFromString(const std::string& theString)
{
myEnumType ReturnVal = myNameSpace::myEnumType::eUNKNOWN;
Parasoft reports “Implicit conversion of integer type from wider to narrower type shall not be used” on…

Mawg says reinstate Monica
- 38,334
- 103
- 306
- 551