3 ms·
I don't know of a way to test this behavior (I mainly code C++ and unit test with Google Test). One could spawn a process and capture the output and return valu
by roeles 4y ago
I don't know of a way to test this behavior (I mainly code C++ and unit test with Google Test).
One could spawn a process and capture the output and return value, but that sounds a bit heavy for just testing if your error handling still works as intended.