tags:

views:

8

answers:

0

This is my issue. I'm working on a unit testing class for a project in C. the unit testing class works great but one of methods it's testing calls a Method from an API to communicate with a piece of Hardware. because of the hardware's closed off software, there really is no way for me to allow it to run while I run my tests, and I shouldn't need to because of the black box nature of the tests.

these calls are simply char* messages being sent to the hardware and when running my test, I just get a lot of print outs of "Could not communicate with API". which I'm assuming is some sort of error checking on the API's part.

my question is, for the sake of a pretty output, is there anyway to catch, suppress, or check all text going to the terminal in this case.(Thats the output stream right? I'm fairly new to C)

I hope that was understandable. thanks for everyone's help!