Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
115 views

I have a segfault occurring because I have a cpputest mock which returns a pointer to a struct, at the point that the mock is called, and inside the mock itself, the address of the struct is something ...
Vivian's user avatar
  • 21
1 vote
0 answers
193 views

I'm working on a project targeting the STM32MP1 Cortex-A7 processor and I'm trying to integrate the CppUTest framework into my build process. I am using VirtualBox Linux for cross-compiling my code. ...
Jerry Hall's user avatar
1 vote
1 answer
135 views

In my CPP file I have added #include <iostream> But then I get the following error when I compile it: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:2827:22: ...
Lucho's user avatar
  • 11
1 vote
1 answer
468 views

I'm forced to use cpputest and I want to know if its memory leak detector is useful. As of now, it seems to be garbage. main.cpp: #include <iostream> #include "CppUTest/...
Bob's user avatar
  • 5,200
0 votes
1 answer
397 views

I'm working on an ESP-IDF based project that runs on ESP32 microcontrollers. The project has a bunch of different C++ libraries (ESP-IDF calls them components) I've written. Normally I compile the ...
chrispitzer's user avatar
  • 1,079
0 votes
0 answers
97 views

How a unit test can be made for this kind of structure? How to change the call so function a() will call function mock_b() instead of function b(). // source.h int b(int x); bool a(); // source.cpp ...
Ronen333's user avatar
0 votes
0 answers
17 views

I want to build a small example project using cpputest under MSVS2019. For this I build a solution with an empty project (will contain my source files later), the included cpputest-repository and my ...
jkbs1337's user avatar
9 votes
1 answer
11k views

I have a C/C++ project in which I want to use CppUTest. So I include the dependency of CppUTest with: include(FetchContent) FetchContent_Declare( CppUTest GIT_REPOSITORY https://...
Stefan's user avatar
  • 252
0 votes
0 answers
926 views

i'm trying to setup CppUTest project with CMake. I'm new to CMake so i started with this example: link It works fine. Project compiles and i see tests ran. Then i tried to create my own project based ...
Mati's user avatar
  • 1
1 vote
0 answers
422 views

It seems that running valgrind when using cpputest library causes memory leaks errors. I use CLion + WSL (GCC + Valgrind). Every line containing TEST() macro is listed in leaks raport. error: Failure ...
Mati's user avatar
  • 781
1 vote
0 answers
179 views

Error in Red bar display and failure indication in test cases, when used C/C++Unit(Cpputest plugin) with eclipse platform for unit testing. I have downloaded the CppuTest package from the link;"...
Meghana.G.M's user avatar
1 vote
0 answers
1k views

I am playing around with a project for a STM32 µC. I use the SW4STM32 workbench and CubeMX on a Mac OSX system. My project itself is fine, everything compiles accordingly and behaves on the device as ...
Tobse's user avatar
  • 37
0 votes
1 answer
1k views

I want to include cpputest in my project's source tree as a git submodule, but I am not terribly familiar with autotools. I have been looking at this page as a guide I've created the following ...
Nick's user avatar
  • 1,423
1 vote
0 answers
73 views

Before retiring, I successfully introduced unit testing in Eclipse for an embedded arm cross compiled target to my team, based on the book Test-Driven Development for Embedded C by James W. Grenning ...
David128's user avatar
0 votes
0 answers
562 views

I'm using CppUTest to handle unit testing with my C library. However, I'm having an issue when compiling the test file. Here's my Makefile (The CPPUTEST_HOME var is an environment variable): ...
S. Sharma's user avatar
  • 213
2 votes
1 answer
515 views

When I try to build test sources I get an error like after this. stl_tree.h:542:14: error: ‘__node’ does not name a type ::new(__node) _Rb_tree_node<_Val>; Executor's content. #include ...
nurisezgin's user avatar
  • 1,570
1 vote
1 answer
565 views

I am building a visual studio project through command line for that I need to run multiple commands at once.So I am created a batch file which includes all the commands.When I run the batch file only ...
Aneesh A S's user avatar
0 votes
1 answer
721 views

I'm planning to use cpputest as a testing framework in my project which I need to cross compile as it will be used on ARM platform. The compiler I'm using for ARM development is arm-gcc which is built ...
M.K.'s user avatar
  • 1
2 votes
1 answer
2k views

I am attempting to remove certain directories from my lcov tracefile, but am not having any success. I am attempting to use relative paths, and I am using cygwin. My test framework is cpputest. My ...
Nick's user avatar
  • 1,423
1 vote
1 answer
509 views

I want to use cpputest on STM8 and installed all the required tools for it. I am able to run cpputest on my simplified code. on my main file which belongs to the hardware I have of course the main ...
K0ertis's user avatar
  • 131
2 votes
2 answers
719 views

maybe there is someone who has experience with Unit Testing with cpputest. I have something like this: Source code Under Test: main_function() { static int8 is_functioncalled = 1; if (...
JohnDoe's user avatar
  • 915
1 vote
1 answer
386 views

I'm writing an Unit Test (in cpputest) where I try to perform an "dependence injection" to a function call. This means when the Unit Test have to call the real function which is placed within the file ...
JohnDoe's user avatar
  • 915
1 vote
1 answer
1k views

I have a function that implements a state machine, test_hw(), i e. First state is idle, and it has not calling any mocked function inside. But this machine has 6 states more. The idea is that machine ...
Suvi_Eu's user avatar
  • 275
2 votes
1 answer
425 views

I am having a problem when trying to use CPPUTest to test my library. Everything was fine until i included Eigen library to handle matrix processing. When i tried to build with g++, Eigen library ...
Cuder's user avatar
  • 23
1 vote
1 answer
807 views

I have wrote the syntax: mock().expectNoCall("productionCode") as Cpputest.org page says. But the compiler says that mocksupport class doesn't support this type of order. test_RFID_Drv.c:322:9: ...
Suvi_Eu's user avatar
  • 275