-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersverifiedBug fix is verifiedBug fix is verifiedwrong generationInadequate or empty test suite generatedInadequate or empty test suite generated
Description
To Reproduce
Generate test for following code
int div(int a, int b) {
return a / b;
}Actual behavior
When Verbose setting is enabled following error test is generated
TEST(error, div_test_2)
{
// Construct input
int a = 0;
int b = 0;
// Trigger the function
div(a, b);
FAIL() << "Unreachable point. Function was supposed to fail, but actually completed successfully.";
}When Verbose is disabled then:
TEST(error, div_test_2)
{
div(0, 0);
}As result depending on verbose setting test behaves completely differently.
Expected
UTBot either adds FAIL() at the end of the test in both situations or doesn't add it not matter what state of Verbose setting is.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersverifiedBug fix is verifiedBug fix is verifiedwrong generationInadequate or empty test suite generatedInadequate or empty test suite generated
Type
Projects
Status
Done