I want to proceed with the project static analysis in the built-in version of visual studio. IDE has been delivered to MLXIDE (based on eclipse) and compiler information to eclipse 4.3, and there is an error that does not currently receive #define content. As the header file containing #define content is #included and…
I've got a function with the following code: if (ext_test() == true) { ext_mod(); if (ext_test() == true) { ext_in(); } ext_out();} and I need to make a test that executes out_func() BUT NOT in_func() (the ext_test(), ext_mod(), ext_in() and ext_out() functions access data outside the function; I didn't design this BTW,…
Hello, I am using the CMake extension for creating C/C++ Test projects and what I noticed is, that the extension is also capturing commands which compile/link temporary files during a CMake build. This is especially, or maybe only, the case when the build has dependencies on other static libraries. These commands will also…
For example, class A has a public function foo(). class A { public: int Foo(); } I add the stub like this: void CppTest_Stub_Foo() { CPPTEST_STUB_CALLED("A::Foo"); int __return = 0; if (CPPTEST_STUB_HAS_CALLBACK()) { CPPTEST_STUB_CALLBACK(int __return, const A __this); CPPTEST_STUB_INVOKE_CALLBACK(&__return, this); } } But…
Hi, I have tested my code by various static tests of parasoft. My code had somthing like the following: uint8_t a; a = input_from_a _port(); // this function returns a signed char value if(a > 0) do_something1(); else do_somthing2(); This code has fault. when "a" is set to a negative value using input_from_a _port(), fault…
We are excited to announce the launch of C/C++test 2023.2, featuring an array of new functionalities and improvements. Notably, our latest release incorporates complete support for MISRA C++ 2023, the cutting-edge coding standard in C++ designed to address safety and security concerns. Industries prioritizing safety,…
In our test application, We have multiple test suits, We created stub for mq_timerecived function used in file many source file. When we executed test application, Stub is called only on 1 test suites and for other test suites even though we registered Stub callback function in test cases, Its not calling stub and stub…
I'm using Parasoft C++Test Professional 2023.1 and I'm getting false positives on AUTOSAR Rule A7-1-3 which states that "CV-qualifiers shall be placed on the right hand side of the type that is a typedef or a using name" Take this example: #include <cstdint>#include <typeinfo>#include <iostream>#include <string>namespace…
Hi all, I am trying to understand the behaviour and relationship of cpptestcli with Microsoft Visual C++ (MSVC) compiler. My question is: * How does Parasoft choose the default MSVC compiler to use? When specifying the compiler configuration using the -compiler property, specifying vc_14_2-64 (64 bit version of compiler)…
While running the Unit Testing for QNX app I am facing the below issue: * Test execution: error linking test executable for Test unit for selected sources. cc: unknown target 'gcc_ntoaarch64' cc: targets available in C:/Users/t0075a4/qnx710/host/win64/x86_64/etc/qcc/gcc: 8.3.0,gcc_ntoaarch64le 8.3.0,gcc_ntoaarch64le_cxx…
It looks like you're new here. Sign in or register to get started.