Adds expected results when a regression test failed due to unexpected debug logs

This commit is contained in:
Felipe Zimmerle 2015-09-16 15:00:16 -03:00
parent e88d2120fb
commit c8f91ca856

View File

@ -200,7 +200,10 @@ end:
if (d != NULL) {
if (!d->contains(t->debug_log)) {
std::cout << KRED << "failed!" << RESET << std::endl;
testRes->reason << "Debug log was not matching the expected results.";
testRes->reason << "Debug log was not matching the " \
<< "expected results." << std::endl;
testRes->reason << KWHT << "Expecting: " << RESET \
<< t->debug_log + ".";
testRes->passed = false;
} else if (r.status != t->http_code) {
std::cout << KRED << "failed!" << RESET << std::endl;