How to get results of expect_exit? #4085
Replies: 2 comments 1 reply
-
In my test case, I want to test about 1000 functions with different inputs. So I need to test all 1000 functions one by one. For each function, I want to test with different inputs. But once it failed, this function should be record and stopped. |
Beta Was this translation helpful? Give feedback.
-
If I understand correctly, you are trying to get the values of If so, you can use
It is also possible that I don't understand what you are trying to do. If so, please provide a full example. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to do a test in a loop like this:
for(int i = 0; i < 1000; i++) {
for(int j = 0; j < 1000; j++) {
auto &result = EXPECT_EXIT(XXXXXXXXXXX);
if (result) {
do something;
break; // jump out of loop for j
}
}
}
Now, what I need is the result of the
EXPECT_EXIT
.Beta Was this translation helpful? Give feedback.
All reactions