That's my problem. I am working on a unit testing class for a C project. The unit testing class works fine, but one of the methods that it tests calls the method from the API to communicate with a piece of equipment. due to the hardware shutting down the software, there really is no way for me to let it work while I run my tests, and I wonβt need to because of the nature of the tests in the black box.
These calls are just char * messages sent to the hardware, and when I run my test, I just get a lot of "Can't contact the API" printouts. which I assume is some kind of error checking in the API part.
My question is that for a good conclusion, in any case, it is possible to catch, suppress or check all the text going to the terminal in this case. (That is, the output stream is correct? I'm new to C)
source
share