Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In fact, it turns out that you are writing a system test. Therefore, for it you need an already compiled application.
The easiest option, in this case, is to simply call the application with std::system and check the output. Since std::system simply returns an exit code, the output can be written to a file. Well, then, as in a regular test, compare what happened and what should happen. In fact, you have two applications: the test itself and the utility you are testing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question