The logging test is less ambiguous
This commit is contained in:
+6
-5
@@ -203,13 +203,14 @@ int main()
|
|||||||
}
|
}
|
||||||
assert(error == false);
|
assert(error == false);
|
||||||
|
|
||||||
Config::set("log_level", "3");
|
Config::set("log_level", "2");
|
||||||
Config::set("log_file", "");
|
Config::set("log_file", "");
|
||||||
|
|
||||||
log_debug("coucou");
|
std::cout << color << "Testing logging…" << reset << std::endl;
|
||||||
log_info("coucou");
|
log_debug("If you see this, the test FAILED.");
|
||||||
log_warning("coucou");
|
log_info("If you see this, the test FAILED.");
|
||||||
log_error("coucou");
|
log_warning("You wust see this message. And the next one too.");
|
||||||
|
log_error("It’s not an error, don’t worry, the test passed.");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user