Stm32 generate unit test cases and run
Parasoft Forum » C/C++test
by gokul
2d ago
I'm encountering errors when attempting to perform unit tests on an STM32 project![] . The issue seems to stem from xHarness not recognizing .obj files, resulting in an error message stating "line 1: error: unrecognized token." I've included the error details for reference. help me with this ..read more
Visit website
Use __va_list_tags instead of va_list when autogenerate unit test case
Parasoft Forum » C/C++test
by thinksmart
4d ago
In my code there is a function like this: static void vhal_log(const char *file, int line, const char *tag, int level, const char *fmt, va_list args) the last param args is a va_list type.But when I use builtin rules:Generate Unit Tests to auto generate unit test case for this function, the result like this: struct __va_list_tag * _args = 0 ; { /* Tested function call */ vhal_log(_file, _line, _tag, _level, _fmt, _args); /* Post-condition check */ CPPTEST_POST_CONDITION_PTR("struct __va_list_tag * _args ", ( _args )); } In test case,the last param type is defined to "struct __va_list_tag *" .I ..read more
Visit website
Using GCC Linker and options are not recognized
Parasoft Forum » C/C++test
by Harleyrider78
1w ago
I am using Parasoft 2020.1 and in my project I am using a .BDF file. The compiler family is the GNU GCC 4.9.x. The problem I am having is when I put in a linker option it is not being recognized. My current state of my project the Static Code analysis is working and so is Stub Generation. But when I run a unit test during the linking test project I get a lot of errors of the following type: C:\Parasoft_workspace.cpptest\projectname\file-data\CppTestCoverage.c21e6daa5\CppTestCoverage.o: In function localInitializeCoverage': C:\Parasoft\C++test\2020.1\engine\runtime\src/CppTestCoverage.c:213: un ..read more
Visit website
Windows blue screen crash when using Parasoft products after a recent Windows 11 update
Parasoft Forum » C/C++test
by jakubiak
2w ago
Several users have reported a Windows crash with error UNEXPECTED_KERNEL_MODE_TRAP when using Parasoft tools after applying a recent Windows 11 update. It appears that different sets of actions can trigger the issue, but some known cases include closing a responder editor in Parasoft Virtualize or closing the test configuration editor in C/C++test Professional. So far, the issue has appeared on the following Windows 11 versions: 22H2 OS build 22621.3296 and newer 23H2 OS build 22631.3296 and newer We have reason to believe that Microsoft introduced the issue with KB5034848 (OS Builds 22621.3 ..read more
Visit website
New C/C++test CT Product Launch Announcement!
Parasoft Forum » C/C++test
by rcamacho
2w ago
We are thrilled to announce the launch of Parasoft C/C++test CT, a revolutionary Continuous Testing and Compliance Toolchain designed to transform the development landscape for safety- and security-critical C and C++ software. Tailored for large teams navigating the complexities of stringent standards and compliance requirements, Parasoft C/C++test CT offers unparalleled features and benefits to streamline your development process and ensure the delivery of safe, secure, and reliable software. Key Features of Parasoft C/C++test CT: Seamless Integration: Effortlessly integrates into modern CI ..read more
Visit website
My parasoft test check un-reachable code, how to disable it?
Parasoft Forum » C/C++test
by optac
1M ago
I get misra2012 errors from code that is not suppose to be compiled. for example - returns it is a fact that only 1 line can be in the compiled code. thus parasoft test shall return only 1 error. but for some reason I get 5 errors, no matter what is the defined value. how to disable this behavior ..read more
Visit website
Vscode c/c++ extension
Parasoft Forum » C/C++test
by Jan
1M ago
I tried to use the vscode extension version 2023.2.0. The documentation says i have to use c/c++test standard. But I am using the professional version (2023.2.0). It is works partly. But when i am trying to open the rule documention i get "Cannot find rule documentation for C..." Does this feature only works with the standard version ..read more
Visit website
Parasoft tool dynamic analysis
Parasoft Forum » C/C++test
by dimetallica
2M ago
I run the parasoft tool in CubeIDE. i Run IAR EW Tests. When i load the test results(files) it gives me this setup problem : Test execution: error reading test log for Test unit for selected sources ..read more
Visit website
Cpptesttrace: command not found
Parasoft Forum » C/C++test
by Kmanusilp
2M ago
I have used Ubuntu OS and tried to create bdf file with command cpptesttrace. But it turns out like cpptesttrace: command not found. (I have already added PATH in .bashrc as well) Here is the command I executed. $ projectName=test1234 $ bdfOutPath=$gitHubWork/$projectName.bdf $ rm -rf $bdfOutPath $ cpptesttrace --cpptesttraceOutputFile=$bdfOutPath --cpptesttraceProjectName=$projectName make clean all ..read more
Visit website
Testsuite - Datasource error at 1st row
Parasoft Forum » C/C++test
by CodeBear42
3M ago
Hi, I am currently trying to run test cases with excel as datasource, in sum 3 rows (test cases). But the test fails at 1st row, the error log isn't helpfull. The datasource setup recognizes the input columns without any issue. In the result report it is showing "test execution problem". The test runs on the hardware, using Lauterbach Trace32. At the moment there's no assertion command used. Data is read via CPPTEST_DS_GET_FLOAT() command. The testsuite setup looks as followed: CPPTEST_TEST_SUITE(TestSuite_Transmit_ToCom_NetIoMgr); CPPTEST_TEST_SUITE_SETUP(TestSuite_Transmit_ToCom_NetIoMgr_tes ..read more
Visit website

Follow Parasoft Forum » C/C++test on FeedSpot

Continue with Google
Continue with Apple
OR